summaryrefslogtreecommitdiffstats
path: root/.scripts/statusbar/i3pacman
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2018-11-11 21:27:04 -0500
committerLuke Smith <luke@lukesmith.xyz>2018-11-11 21:27:04 -0500
commitdebbe40d2c60d4eb8c407d16075838a84edf91d6 (patch)
tree33f00ed63869a7c3d45a31672a7e5c1623b5ce3d /.scripts/statusbar/i3pacman
parent9fd0e6575439747e179be8218b0f372fedf69dc4 (diff)
downloadeibhear-debbe40d2c60d4eb8c407d16075838a84edf91d6.tar.gz
eibhear-debbe40d2c60d4eb8c407d16075838a84edf91d6.tar.zst
eibhear-debbe40d2c60d4eb8c407d16075838a84edf91d6.zip
right click on modules shows module info
Diffstat (limited to '.scripts/statusbar/i3pacman')
-rwxr-xr-x.scripts/statusbar/i3pacman9
1 files changed, 6 insertions, 3 deletions
diff --git a/.scripts/statusbar/i3pacman b/.scripts/statusbar/i3pacman
index 6825b92..1207e2c 100755
--- a/.scripts/statusbar/i3pacman
+++ b/.scripts/statusbar/i3pacman
@@ -4,10 +4,13 @@
# Displays number of upgradeable packages.
# For this to work, have a `pacman -Sy` command run in the background as a
# cronjob every so often as root. This script will then read those packages.
-# When clicked, it will run an upgrade via `yay`. (`yay` required, duh.)
+# When clicked, it will run an upgrade via pacman.
case $BLOCK_BUTTON in
- 1) $TERMINAL -e "popupgrade" ;;
+ 1) $TERMINAL -e popupgrade ;;
+ 3) pgrep -x dunst >/dev/null && notify-send "<b>Upgrade module:</b>
+📦: number of upgradable packages" ;;
esac
-yay -Qu | sed -e '/^Get/d' | wc -l | sed -e "s/^0$//g"
+
+pacman -Qu | wc -l | sed -e "s/^0$//g"