vimrc clean + snippets
[dotfiles.git] / Scripts / statusbar / blocks_vol
1 #!/bin/sh
2
3 # Audio status for pulseaudio with pulsemixer
4
5 volume="$(pulsemixer --get-volume | awk '{ print $1 }')"
6
7 icon=""
8 [ "$volume" -gt "0" ] && icon="" 
9 [ "$volume" -gt "50" ] && icon="" 
10 [ "$volume" -gt "75" ] && icon="" 
11
12 [ "$(pulsemixer --get-mute)" = 1 ] && icon="ﱝ" && volume="XX"
13
14 printf "$icon $volume%%"