summaryrefslogtreecommitdiff
path: root/.config/polybar
diff options
context:
space:
mode:
Diffstat (limited to '.config/polybar')
-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"