dotfiles

personal dotfiles
git clone anongit@rnpnr.xyz:dotfiles.git
Log | Files | Refs | Feed | Submodules

volume (257B)


      1 #!/bin/sh
      2 
      3 # adjust audio and update statusbar
      4 
      5 OUT=${AUDIOSINK:-"Speaker"}
      6 
      7 if [ $OUT = "pulse" ]; then
      8 	if [ "$1" = "toggle" ]; then
      9 		pactl set-sink-mute 0 $@
     10 	else
     11 		pactl set-sink-volume 0 $@
     12 	fi
     13 else
     14 	amixer -q set "$OUT" $@
     15 fi
     16 
     17 pkill -RTMIN+2 status