diff options
Diffstat (limited to 'des')
| -rwxr-xr-x[l---------] | des/i3/i3blocks/scripts/archupdates | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/des/i3/i3blocks/scripts/archupdates b/des/i3/i3blocks/scripts/archupdates index aba6472..93672f1 120000..100755 --- a/des/i3/i3blocks/scripts/archupdates +++ b/des/i3/i3blocks/scripts/archupdates @@ -1 +1,10 @@ -archupdates
\ No newline at end of file +#!/usr/bin/bash + +PAC_UPDATES=$(checkupdates | wc -l) +AUR_UPDATES=$(auracle sync -q | wc -l) + +if [[ $PAC_UPDATES -gt 0 || $AUR_UPDATES -gt 0 ]]; then + echo "⟳[$PAC_UPDATES .. $AUR_UPDATES]" +else + echo "<span color=\"#586e75\"> 0</span>" +fi |
