From fada9b143a4243811fafff272e9f3742f4ef17da Mon Sep 17 00:00:00 2001 From: luukvbaal <31730729+luukvbaal@users.noreply.github.com> Date: Thu, 20 Dec 2018 19:10:41 +0100 Subject: [PATCH] pacpackages module addition Shows upgradable packages via notify-send. Requires `checkupgrades` which is part of `pacman-contrib` which also includes rankmirrors, pactree etc which a lot of people use i believe so adding it to LARBS dependencies wouldn't be too bad I think. --- .scripts/statusbar/pacpackages | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.scripts/statusbar/pacpackages b/.scripts/statusbar/pacpackages index 1207e2c..afbf1e7 100755 --- a/.scripts/statusbar/pacpackages +++ b/.scripts/statusbar/pacpackages @@ -8,8 +8,11 @@ case $BLOCK_BUTTON in 1) $TERMINAL -e popupgrade ;; + 2) notify-send "$(/usr/bin/checkupdates)" ;; 3) pgrep -x dunst >/dev/null && notify-send "Upgrade module: -📦: number of upgradable packages" ;; +📦: number of upgradable packages +- Left click to upgrade packages +- Middle click to show upgradable packages" ;; esac