Automatically switch to bluetooth headset when connected:
https://thiagowfx.github.io/2021/12/linux-auto-switch-to-bluetooth-headset/
cp /usr/share/pipewire/pipewire-pulse.conf ~/.config/pipewire/pipewire-pulse.conf
Edit user configuration file ~/.config/pipewire/pipewire-pulse.conf and add the following:
context.exec = [
{ path = "pactl" args = "load-module module-switch-on-connect" }
]