20 lines
294 B
Bash
20 lines
294 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
muted="$(pamixer --get-mute)"
|
||
|
if [ $muted != "false" ]
|
||
|
then
|
||
|
printf "ﱝ "
|
||
|
else
|
||
|
volume="$(pamixer --get-volume)"
|
||
|
if [ $volume -gt 30 ]
|
||
|
then
|
||
|
printf "墳 $volume%%\n"
|
||
|
elif [ $volume -gt 10 ]
|
||
|
then
|
||
|
printf "奔 $volume%%\n"
|
||
|
else
|
||
|
printf "奄 $volume%%\n"
|
||
|
fi
|
||
|
fi
|
||
|
|