sb

shitty bar for dwm
git clone git://git.ckyln.com/~cem/sb.git
Log | Files | Refs | README | LICENSE

sb_pulseaudio (194B)


      1 # checks pulseaudio volume
      2 
      3 pulseaudio() {
      4 	VOL="$(pamixer --get-volume-human | sed "s/%//g" | tr -d '\n' || return 1)"
      5 	! [ "$VOL" = "muted" ] && VOL="$VOL%%"
      6 	printf "VOL: $VOL $DELIMITER "
      7 }