diff options
author | Adam T. Carpenter <atc@sparrowhawk.53hor.net> | 2020-05-13 08:19:11 -0400 |
---|---|---|
committer | Adam T. Carpenter <atc@sparrowhawk.53hor.net> | 2020-05-13 08:19:11 -0400 |
commit | 8b1a2abb3bc497af04f9531db46af4b0dda42117 (patch) | |
tree | 14e91cc7a77d6d4756d58db6e004cdab3546f627 /i3blocks-packages.sh | |
parent | b184782970853b3c479f6c4ad833a36a3aea7afa (diff) | |
download | scripts-8b1a2abb3bc497af04f9531db46af4b0dda42117.tar.xz scripts-8b1a2abb3bc497af04f9531db46af4b0dda42117.zip |
updated for FreeBSD userland, included wpg scripts
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 |