summaryrefslogtreecommitdiff
path: root/i3blocks-up.sh
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2020-11-24 08:14:24 -0500
committerAdam T. Carpenter <atc@53hor.net>2020-11-24 08:14:24 -0500
commitb387934988d98ca7842bf44bd94d5067e3f9f843 (patch)
tree09ea4967e6b2b7dbf1a05f0900e0d739f85aa579 /i3blocks-up.sh
parentd7411594c0ca071f08da108f544902f03e2e413d (diff)
downloadscripts-b387934988d98ca7842bf44bd94d5067e3f9f843.tar.xz
scripts-b387934988d98ca7842bf44bd94d5067e3f9f843.zip
updated blocks and autolock
Diffstat (limited to 'i3blocks-up.sh')
-rwxr-xr-xi3blocks-up.sh5
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