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
icon="🔊"
elif [ "$vol" -lt "30" ]; then
elif [ "$vol" -gt "30" ]; then
icon="🔉"
elif [ "$vol" -gt "0" ]; then
icon="🔈"
else
icon="🔉"
echo 🔇 && exit
fi
echo "$icon $vol%"