all repos

dotfiles @ 946566abc62313f68c2846f089560f5d999abbeb

my dotfiles

config/bspwm/polybar/scripts/updates-pacman-aur.sh (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash
if ! updates_arch=$(checkupdates 2> /dev/null | wc -l ); then
    updates_arch=0
fi

if ! updates_aur=$(yay -Qum 2> /dev/null | wc -l); then
    updates_aur=0
fi

updates=$(("$updates_arch" + "$updates_aur"))
if [ "$updates" -gt 0 ]; then
    echo " $updates"
else
    echo ""
fi