added % to volume
This commit is contained in:
parent
1528bb5fc9
commit
77d4ed943b
@ -6,10 +6,10 @@ vol="$(amixer get Master | tail -n1 | sed -r 's/.*\[(.*)%\].*/\1/')"
|
|||||||
if [ $# -gt 0 ]; then
|
if [ $# -gt 0 ]; then
|
||||||
stat="$(amixer get Master | tail -n1 | sed -r 's/.*\[(.*)].*/\1/')"
|
stat="$(amixer get Master | tail -n1 | sed -r 's/.*\[(.*)].*/\1/')"
|
||||||
if [[ $(echo $stat) == "on" ]]; then
|
if [[ $(echo $stat) == "on" ]]; then
|
||||||
echo " 🔊 $vol"
|
echo " 🔊 $vol%"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
echo " 🔇 $vol"
|
echo " 🔇 $vol%"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user