fix(polybar): made updates more obvious

This commit is contained in:
Vlad Doster 2020-01-10 00:25:16 -05:00
parent d5812c8336
commit 866c30f12e
2 changed files with 6 additions and 3 deletions

View File

@ -66,7 +66,8 @@ exec = ~/.local/bin/polybar_scripts/aur_updates
format = <label>
label = %{A1:$TERMINAL -e yay >/dev/null 2>&1 &:}%output%%{A}
label-underline=#ff0000
interval = 100
label-overline=#ff0000
interval = 1000
[module/battery]
type = internal/battery

View File

@ -4,8 +4,10 @@ if ! updates=$(yay -Qum 2> /dev/null | wc -l); then
updates=0
fi
if [ "$updates" -gt 0 ]; then
echo "[$updates updates]"
if [ "$updates" -eq 1 ]; then
echo "$updates update"
elif [ "$updates" -gt 1 ]; then
echo "$updates updates"
else
echo ""
fi