This commit is contained in:
2022-11-09 21:37:11 +01:00
parent 77d4ed943b
commit bb326f371e
3 changed files with 7 additions and 14 deletions

View File

@ -6,10 +6,10 @@ vol="$(amixer get Master | tail -n1 | sed -r 's/.*\[(.*)%\].*/\1/')"
if [ $# -gt 0 ]; then
stat="$(amixer get Master | tail -n1 | sed -r 's/.*\[(.*)].*/\1/')"
if [[ $(echo $stat) == "on" ]]; then
echo " 🔊 $vol%"
echo "VOL $vol%"
exit
fi
echo " 🔇 $vol%"
echo "MUT $vol%"
exit
fi