muting volume when 0%, space between icon and percentage
This commit is contained in:
parent
163738e6ad
commit
995cff49e6
1 changed files with 5 additions and 3 deletions
|
@ -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%"
|
||||
|
|
Loading…
Reference in a new issue