diff options
author | Adam T. Carpenter <atc@53hor.net> | 2021-01-27 19:31:44 -0500 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2021-01-27 19:31:44 -0500 |
commit | 0e33f0f1bc7803fd21d947f82d527c1edc71c316 (patch) | |
tree | 56a1e7337d580ad7f7c05a66a0979f98a26af8c8 /i3blocks-packages.sh | |
parent | 6aa3f3db5e3226f3b2774ff19c2fcc00185a3615 (diff) | |
download | scripts-0e33f0f1bc7803fd21d947f82d527c1edc71c316.tar.xz scripts-0e33f0f1bc7803fd21d947f82d527c1edc71c316.zip |
updated docking station script, package block
Diffstat (limited to 'i3blocks-packages.sh')
-rwxr-xr-x | i3blocks-packages.sh | 1 |
1 files changed, 1 insertions, 0 deletions
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" |