muting volume when 0%, space between icon and percentage

This commit is contained in:
Colby Thomas 2021-10-17 22:57:47 -06:00
parent 163738e6ad
commit 995cff49e6

View file

@ -19,10 +19,12 @@ vol="$(pamixer --get-volume)"
if [ "$vol" -gt "70" ]; then if [ "$vol" -gt "70" ]; then
icon="🔊" icon="🔊"
elif [ "$vol" -lt "30" ]; then elif [ "$vol" -gt "30" ]; then
icon="🔉"
elif [ "$vol" -gt "0" ]; then
icon="🔈" icon="🔈"
else else
icon="🔉" echo 🔇 && exit
fi fi
echo "$icon$vol%" echo "$icon $vol%"