blob: be07c932a3833402c5018a6092a3350aab6d5146 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh
# Prints the current volume or MUT if muted.
[ $(pamixer --get-mute) = true ] && echo "MUT" && exit
vol="$(pamixer --get-volume)"
if [ "$vol" -gt "0" ]; then
icon=""
else
echo "MUT" && exit
fi
printf "%3d" $vol
|