Up-to-date version here: https://github.com/madacol/sinkSwitcher
Each script is independent from each other.
- Download whichever you want.
- Make it executable i.e.
chmod +x sinkSwitcher.sh
. - Add a keyboard shortcut to execute each script.
Note: I had to install compizconfig-settings-manager to set the shorcuts.
sudo apt-get install compizconfig-settings-manager
.
Rotates the default sink among the available audio output devices (I only use this to be able to change volume)
Detects the focused application, find all belonging sink-inputs and switch them to next sink.