From b387934988d98ca7842bf44bd94d5067e3f9f843 Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Tue, 24 Nov 2020 08:14:24 -0500 Subject: updated blocks and autolock --- i3blocks-up.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 i3blocks-up.sh (limited to 'i3blocks-up.sh') 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 -- cgit v1.2.3