it will not switch automatic, looks like this needs to be somehow enabled…
mkdir -p ~/.config/pipewire/media-session.d
cp /usr/share/pipewire/media-session.d/bluez-monitor.conf ~/.config/pipewire/media-session.d/bluez-monitor.conf
nano ~/.config/pipewire/media-session.d/bluez-monitor.conf
and uncomment the line bluez5.autoswitch-profile = true
and set it to true …
save the file … restart system or services:
systemctl --user restart pipewire pipewire-pulse
Working exactly a sit says… if you start recording it enables Headset profile and seamless back of you are stopping recording…