diff options
| author | Andrew <saintruler@gmail.com> | 2020-06-05 17:02:06 +0400 |
|---|---|---|
| committer | Andrew <saintruler@gmail.com> | 2020-06-05 17:02:06 +0400 |
| commit | ea8ff6d7638cdd1f36cc978f1734759158b969b0 (patch) | |
| tree | 18893c91594a2d58bb6757f592a076c5496e300e /.local/bin/statusbar/pacpackages | |
Initial commit
Diffstat (limited to '.local/bin/statusbar/pacpackages')
| -rwxr-xr-x | .local/bin/statusbar/pacpackages | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.local/bin/statusbar/pacpackages b/.local/bin/statusbar/pacpackages new file mode 100755 index 0000000..2fafe61 --- /dev/null +++ b/.local/bin/statusbar/pacpackages @@ -0,0 +1,10 @@ +#!/bin/sh + +case $BLOCK_BUTTON in + 1) setsid -f "$TERMINAL" -e popupgrade ;; +esac + +pacmancnt=$(pacman -Qu | grep -Fcv "[ignored]") +aurcnt=$(yay -Qau | grep -Fcv "[ignored]") +echo "$pacmancnt/$aurcnt" | sed "s/^/📦/g" + |