diff options
author | Adam T. Carpenter <atc@53hor.net> | 2020-11-24 08:14:24 -0500 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2020-11-24 08:14:24 -0500 |
commit | b387934988d98ca7842bf44bd94d5067e3f9f843 (patch) | |
tree | 09ea4967e6b2b7dbf1a05f0900e0d739f85aa579 /i3blocks-up.sh | |
parent | d7411594c0ca071f08da108f544902f03e2e413d (diff) | |
download | scripts-b387934988d98ca7842bf44bd94d5067e3f9f843.tar.xz scripts-b387934988d98ca7842bf44bd94d5067e3f9f843.zip |
updated blocks and autolock
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 |