dotfiles

my shiny new dotfiles
git clone git://git.jakekoroman.com/dotfiles
Log | Files | Refs | README

audio_loopback (347B)


      1 #!/bin/sh
      2 
      3 src="alsa_input.pci-0000_00_1f.3.analog-stereo"
      4 sink="$(pactl get-default-sink)"
      5 tmpfile="/tmp/audio_loopback"
      6 
      7 if test ! -e $tmpfile; then
      8     pactl load-module module-loopback source=$src sink=$sink > $tmpfile
      9     echo "started loopback"
     10     exit
     11 else
     12     pactl unload-module < $tmpfile
     13     rm $tmpfile
     14     echo "stopped loopback"
     15 fi