From 8b1a2abb3bc497af04f9531db46af4b0dda42117 Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Wed, 13 May 2020 08:19:11 -0400 Subject: updated for FreeBSD userland, included wpg scripts --- i3blocks-packages.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 i3blocks-packages.sh (limited to 'i3blocks-packages.sh') 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 -- cgit v1.2.3