You are not logged in.
On connecting my headphones I have to change the configuration in pavucontrol manually to use them and same goes for speakers, how to make them switch automatically?
Offline
Are those distinct sound cards rather than a port based detection logic? If they're distinct sound cards the easiest would be a pipewire-pulse.conf override that loads module-switch-on-connect e.g.
pulse.cmd = [
{ cmd = "load-module" args = "module-always-sink" flags = [ ]
condition = [ { pulse.cmd.always-sink = !false } ] }
{ cmd = "load-module" args = "module-device-manager" flags = [ ]
condition = [ { pulse.cmd.device-manager = !false } ] }
{ cmd = "load-module" args = "module-device-restore" flags = [ ]
condition = [ { pulse.cmd.device-restore = !false } ] }
{ cmd = "load-module" args = "module-stream-restore" flags = [ ]
condition = [ { pulse.cmd.stream-restore = !false } ] }
{ cmd = "load-module" args = "module-switch-on-connect" }
#{ cmd = "load-module" args = "module-gsettings" flags = [ nofail ] }
]in a override file at /etc/pipewire/pipewire-pulse.conf.d/20-switchOnConnect.conf
Online