summaryrefslogtreecommitdiff
path: root/i3blocks-packages.sh
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@sparrowhawk.53hor.net>2020-05-13 08:19:11 -0400
committerAdam T. Carpenter <atc@sparrowhawk.53hor.net>2020-05-13 08:19:11 -0400
commit8b1a2abb3bc497af04f9531db46af4b0dda42117 (patch)
tree14e91cc7a77d6d4756d58db6e004cdab3546f627 /i3blocks-packages.sh
parentb184782970853b3c479f6c4ad833a36a3aea7afa (diff)
downloadscripts-8b1a2abb3bc497af04f9531db46af4b0dda42117.tar.xz
scripts-8b1a2abb3bc497af04f9531db46af4b0dda42117.zip
updated for FreeBSD userland, included wpg scripts
Diffstat (limited to 'i3blocks-packages.sh')
-rwxr-xr-xi3blocks-packages.sh5
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