2 base=~/.icons/Paper-Mono-Dark/24x24/panel/audio-volume
4 medium=$base-medium.svg
8 ident="iface=MIXER,name=Master Playback Volume"
9 eval $(amixer cget "$ident" | grep -o 'max=\d\+')
12 # XXX: assume mono, could be different
13 vol=$(amixer get Master | grep 'Mono:')
14 mute=$(echo "$vol" | cut -d ' ' -f 8)
15 vol=$(expr $(echo "$vol" | cut -d ' ' -f 5) \* 100 / $max \* 100 / 100)
16 if [ $mute = '[off]' ]; then
18 elif [ $vol -ge 75 ]; then
20 elif [ $vol -ge 50 ]; then
22 elif [ $vol -ge 25 ]; then