Files
dotfiles/arch/.config/polybar/scripts/check-aur-updates.sh
2025-11-13 17:40:21 +01:00

14 lines
265 B
Bash
Executable File

#!/bin/sh
#source https://github.com/x70b1/polybar-scripts
#source https://github.com/polybar/polybar-scripts
if ! updates_aur=$(yay -Qum 2> /dev/null | wc -l ); then
updates_aur=0
fi
if [ $updates_aur -gt 0 ]; then
echo $updates_aur
else
echo "0"
fi