diff options
Diffstat (limited to 'i3blocks-packages.sh')
-rwxr-xr-x | i3blocks-packages.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/i3blocks-packages.sh b/i3blocks-packages.sh new file mode 100755 index 0000000..347a687 --- /dev/null +++ b/i3blocks-packages.sh @@ -0,0 +1,5 @@ +#!/bin/sh +icon= + +package_count=$(pkg upgrade -n | tail -1 | cut -s -d':' -f2) +[ $package_count -gt 0 ] && printf "$icon %s\n" $package_count |