Toggle Audio Output Between Several Devices

With PulseAudio one can choose the output (in PA syntax, it’s called “sink-input”) device for each audio stream, for example, I can listen to my music on my headphone (USB sound card in my case) and play a movie for my kid on the external speakers. There is a GUI application called “pavucontrol” which allow you to this by point and click, but now days I found myself doing this switch too often, so I was looking for a quick shortcut, and so this is my quick and ugly hack, which I hope will benefit someone else as well.

Toggle Output – The GUI way

pavucontrol GUI

pavucontrol GUI

Toggle the output – Script

Now one just need to assign a shortcut key for this script, and it’s done.



Related Post

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *