diff options
author | Adam T. Carpenter <atc@53hor.net> | 2021-02-24 16:17:16 -0500 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2021-02-24 16:17:16 -0500 |
commit | 98fbc511035711d8aa9aecf9e588ad4677d017df (patch) | |
tree | b9a5cc9c26ae291b0cf99a8b9d8e96ae416004db /i3blocks-packages.sh | |
parent | da7abb9c1ada68b4c2c7c19c12b2d0424de79fe3 (diff) | |
download | scripts-98fbc511035711d8aa9aecf9e588ad4677d017df.tar.xz scripts-98fbc511035711d8aa9aecf9e588ad4677d017df.zip |
updated package block and image loader
Diffstat (limited to 'i3blocks-packages.sh')
-rwxr-xr-x | i3blocks-packages.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/i3blocks-packages.sh b/i3blocks-packages.sh index 3f7b2ad..f139e28 100755 --- a/i3blocks-packages.sh +++ b/i3blocks-packages.sh @@ -2,6 +2,6 @@ icon= doas pkg update 2>/dev/null >/dev/null -count=$(pkg upgrade -n | sed -n 's/^Number of packages to be installed:\(.*\)/\1/p') +count=$(pkg upgrade -n | sed -n 's/^Number of packages to be upgraded:\(.*\)/\1/p') [ -n "$count" ] && [ "$count" -gt 0 ] && printf "%s%s" $icon $count && notify-send "$count package upgrade(s) available" printf "\n" |