diff options
Diffstat (limited to 'i3blocks-up.sh')
-rwxr-xr-x | i3blocks-up.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/i3blocks-up.sh b/i3blocks-up.sh new file mode 100755 index 0000000..52791a1 --- /dev/null +++ b/i3blocks-up.sh @@ -0,0 +1,5 @@ +#!/bin/sh +icon= + +doas freebsd-update updatesready > /dev/null +[ $? -eq 2 ] && printf "$icon%s\n" "$(uptime | grep -o 'up[^,]*')" || printf "%sUpdates are available" $icon |