From 0e33f0f1bc7803fd21d947f82d527c1edc71c316 Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Wed, 27 Jan 2021 19:31:44 -0500 Subject: updated docking station script, package block --- i3blocks-packages.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'i3blocks-packages.sh') diff --git a/i3blocks-packages.sh b/i3blocks-packages.sh index 4fd211f..3f7b2ad 100755 --- a/i3blocks-packages.sh +++ b/i3blocks-packages.sh @@ -1,6 +1,7 @@ #!/bin/sh icon=󰏖 +doas pkg update 2>/dev/null >/dev/null count=$(pkg upgrade -n | sed -n 's/^Number of packages to be installed:\(.*\)/\1/p') [ -n "$count" ] && [ "$count" -gt 0 ] && printf "%s%s" $icon $count && notify-send "$count package upgrade(s) available" printf "\n" -- cgit v1.2.3