mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
fix(polybar): made updates more obvious
This commit is contained in:
parent
d5812c8336
commit
866c30f12e
@ -66,7 +66,8 @@ exec = ~/.local/bin/polybar_scripts/aur_updates
|
|||||||
format = <label>
|
format = <label>
|
||||||
label = %{A1:$TERMINAL -e yay >/dev/null 2>&1 &:}%output%%{A}
|
label = %{A1:$TERMINAL -e yay >/dev/null 2>&1 &:}%output%%{A}
|
||||||
label-underline=#ff0000
|
label-underline=#ff0000
|
||||||
interval = 100
|
label-overline=#ff0000
|
||||||
|
interval = 1000
|
||||||
|
|
||||||
[module/battery]
|
[module/battery]
|
||||||
type = internal/battery
|
type = internal/battery
|
||||||
|
|||||||
@ -4,8 +4,10 @@ if ! updates=$(yay -Qum 2> /dev/null | wc -l); then
|
|||||||
updates=0
|
updates=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$updates" -gt 0 ]; then
|
if [ "$updates" -eq 1 ]; then
|
||||||
echo "[$updates updates]"
|
echo "$updates update"
|
||||||
|
elif [ "$updates" -gt 1 ]; then
|
||||||
|
echo "$updates updates"
|
||||||
else
|
else
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user