Topic: Changing Pulseaudio's sinks with a fingertip!
Hi all!!
Well, I had some spare time, and the inhability to change sound output is something that kept me frustrated with the sound under linux... until now!!! ![]()
This is a quite simple script, wich should change your audio output if you only have 2 sinks...if not...well, you can just finish this script off ![]()
#!/bin/bash
currentindex=`pacmd list-sinks | grep index | grep -v '\*' | awk '{print $3}'`
currentinput=`pacmd list-sink-inputs | grep index | awk '{print $2}' | head -c 2`
#echo "index = ${index}" #debug
#echo "currentinput = ${currentinput}" #debug
pacmd move-sink-input ${currentinput} ${index} #set input
pacmd set-default-sink $index #set pa indexOne of the problem I'm having just now, is I'm trying to bind this (in scrotwm), with the following code:
program[ChangeSink] = ~/bin/changesound.sh
bind[ChangeSink] = MOD+Shift+sI'm trying to get this to work...any ideas?
Last edited by Athos (2012-01-24 13:09:56)