You are not logged in.

#1 2023-04-02 07:56:31

NewWorld
Member
Registered: 2010-02-15
Posts: 33

Script to cycle through PulseAudio outputs, aka. sinks

Hi all, I created a convenient script to change the PulseAudio sink assigned to all applications from a list that cycles, thought I'd share.

I have an audio setup where I constantly had to switch between audio outputs: between my speakers, wired headphones, bluetooth headphones and the TV. It was a constant pain having to use `pavucontrol` for this.

Invoking the script will cycle all applications between speakers and headphones. Not the TV because mine is off most of the time so I'm fine to have to manually set applications to play on this sink, and conversely sink-switching won't apply to applications that are set to output on the TV.

https://gist.github.com/dbedrenko/056cd … 4d54b37e68

Offline

Board footer

Powered by FluxBB