From 29358b8d15ec1ddd8d2c11e2f2f6964ec49edc52 Mon Sep 17 00:00:00 2001 From: benj Date: Mon, 9 Sep 2019 15:22:07 -0700 Subject: basic i3 setup --- des/i3/i3blocks/scripts/archupdates | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 des/i3/i3blocks/scripts/archupdates (limited to 'des/i3/i3blocks/scripts/archupdates') diff --git a/des/i3/i3blocks/scripts/archupdates b/des/i3/i3blocks/scripts/archupdates new file mode 100755 index 0000000..c07c45f --- /dev/null +++ b/des/i3/i3blocks/scripts/archupdates @@ -0,0 +1,10 @@ +#!/usr/bin/bash + +PAC_UPDATES=$(checkupdates | wc -l) +AUR_UPDATES=$(cower -u | wc -l) + +if [[ $PAC_UPDATES -gt 0 || $AUR_UPDATES -gt 0 ]]; then + echo " [$PAC_UPDATES .. $AUR_UPDATES]" +else + echo " 0" +fi \ No newline at end of file -- cgit v1.2.3