Setting default device and automatic bluetooth switch
I have two devices, IDs 49 and 51, 49 is the speakers, 51 is analog output. I can set the default device to 49 with:
pactl set-default-sink alsa_output.pci-0000_00_1f.3.analog-stereo
and make that permanent through pipewire-pulse.conf. Now, that prevents me from getting bluetooth autoconnect.
If I connect to bluetooth, manually or with:
pactl load-module module-switch-on-connect
Then, when bluetooth is disconnected, the fallback is 51 again. By reading online, I assume the issue is related to the priority being assigned based on the number, so it falls beack on 51 before 49.
Now, I cannot really see a way out of this. Since I use it so little, I would even be ok with disabling 51 by default and only re-enabling when needed, but I cannot figure out how to do this either.