I’d like to write a bash script to toggle sound output on PulseAudio between built-in audio and Scarlett USB:
For each process using Pulse, switch the currently used sound output and set default ouput to the one not currently being used.
Anyone has hints on what I should start looking for?