summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authoradam <56338480+adastx@users.noreply.github.com>2022-10-09 15:52:47 +0200
committeradam <56338480+adastx@users.noreply.github.com>2022-10-09 15:52:47 +0200
commit2b14b00c0d72a2db3e9828c62d131f8cb41e3a95 (patch)
tree2ef9bd88deaed4a92c4aeb6699c07728b7f8f656 /.config
parente5ce39bca66f1b6827232d420ed041645ef65d9c (diff)
polybar: exclude ignored AUR pkgs from update count
Diffstat (limited to '.config')
-rwxr-xr-x.config/polybar/extra/updates-pacman-aurhelper.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/.config/polybar/extra/updates-pacman-aurhelper.sh b/.config/polybar/extra/updates-pacman-aurhelper.sh
index a785cd7..83425f5 100755
--- a/.config/polybar/extra/updates-pacman-aurhelper.sh
+++ b/.config/polybar/extra/updates-pacman-aurhelper.sh
@@ -13,7 +13,9 @@ if ! updates_aur=$(paru -Qum 2> /dev/null | wc -l); then
updates_aur=0
fi
-updates=$((updates_arch + updates_aur))
+aur_ignored=$(aurignored | wc -l)
+
+updates=$((updates_arch + updates_aur - $aur_ignored))
if [ "$updates" -gt 0 ]; then
echo " $updates"