yktoo / indicator-sound-switcher

Sound input/output selector indicator for Linux
https://yktoo.com/en/software/sound-switcher-indicator/
GNU General Public License v3.0
369 stars 29 forks source link

Enhancement: Default input/output #133

Closed domi413 closed 1 month ago

domi413 commented 3 months ago

Would be cool to set a default input/output. e.g. if I connect a Bluetooth-speaker and the connection is lost, it automatically switches to a defined default output.

yktoo commented 3 months ago

You can do that in PulseAudio/PipeWire config already, although in a less visual way.

domi413 commented 3 months ago

Apparently pactl set-default-sink should be able to do this, but somehow it hasn't worked for me yet. I will look into this problem later...

yktoo commented 3 months ago

set-default-sink is exactly what the Sound Switcher Indicator does when you click an output item (next to remapping all ports to that sink). This isn't what you're after as far as I can tell.

You might want to have a look at PA modules that allow to restore sinks and ports, see Saving/restoring Settings Modules, and perhaps module-switch-on-connect.

yktoo commented 1 month ago

Closing because there's an alternative solution available.