24 lines
326 B
Bash
Executable File
24 lines
326 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Actually PulseAudio
|
|
|
|
[ "$(pamixer --get-mute)" = "true" ] && {
|
|
echo " mut" && exit 1
|
|
}
|
|
|
|
level="$(pamixer --get-volume)"
|
|
|
|
v1=""
|
|
v2=""
|
|
v3=""
|
|
|
|
if [ "$level" -lt 35 ]; then
|
|
printf "$v1 "
|
|
elif [ "$level" -lt 60 ]; then
|
|
printf "$v2 "
|
|
elif [ "$level" -lt 100 ]; then
|
|
printf "$v3 "
|
|
fi
|
|
|
|
echo "$level%"
|