Replicate pulseaudios handling of default devices
This might be related to !758 (merged), but I'm not quite sure if it's the same scenario. I'm switching between three sound devices with my laptop. There's the builtin sound chip when I'm out of the office, the DAC inside the docking station at work and a USB DAC when working from home. With pulseaudio the correct default device will be set in the corresponding situation after setting it once through pulsemixer. So the builtin sound chip is default when no other device is connected, the DAC of the docking station when I'm at work and the other USB DAC when I'm at home. Pipewire only remembers the last default device set through pulsemixer. So when the laptop is connected to the docking station and I set the default device to its DAC, the builtin sound chip remains as the default device after connecting the USB DAC at home. I guess this behaviour might be possible to replicate by configuring the session manager but, to be honest, after reading through the wiki I have no idea how that's supposed to work. This is on Manjaro with kernel 5.13.13-1 and pipewire 0.3.34. Please let me know if I can contribute any more information. Thanks!