diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2020-04-13 01:38:59 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2020-04-13 01:38:59 -0400 |
| commit | 64b8f085636776e4ab1dad091711a3e8a22a8076 (patch) | |
| tree | cee1e98c5a8406bb1114f4e61ad89977008067ef /.local/bin/statusbar/pacpackages | |
| parent | 6491129dbb654e248df75f289ccf37a82cfab1f2 (diff) | |
| download | eibhear-64b8f085636776e4ab1dad091711a3e8a22a8076.tar.gz eibhear-64b8f085636776e4ab1dad091711a3e8a22a8076.tar.zst eibhear-64b8f085636776e4ab1dad091711a3e8a22a8076.zip | |
statusbar tweaks/updates for dwmblocks
Diffstat (limited to '.local/bin/statusbar/pacpackages')
| -rwxr-xr-x | .local/bin/statusbar/pacpackages | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/.local/bin/statusbar/pacpackages b/.local/bin/statusbar/pacpackages index 6f439cc..49ba319 100755 --- a/.local/bin/statusbar/pacpackages +++ b/.local/bin/statusbar/pacpackages @@ -15,14 +15,14 @@ # [Action] # Description = Updating statusbar... # When = PostTransaction -# Exec = /usr/bin/pkill -RTMIN+8 dwmblocks +# Exec = /usr/bin/pkill -RTMIN+8 dwmblocks # Or i3blocks if using i3. case $BLOCK_BUTTON in - 1) $TERMINAL -e popupgrade ;; + 1) setsid "$TERMINAL" -e popupgrade & ;; 2) notify-send "$(/usr/bin/pacman -Qu)" ;; - 3) notify-send "Upgrade module" "📦: number of upgradable packages + 3) notify-send "🎁 Upgrade module" "📦: number of upgradable packages - Left click to upgrade packages - Middle click to show upgradable packages" ;; esac -pacman -Qu | grep -v "\[ignored\]" | wc -l | sed "s/^/📦/;s/^📦0$//g" +pacman -Qu | grep -cv "\[ignored\]" | sed "s/^/📦/;s/^📦0$//g" |
