Disable profile auto switching for certain apps only
When a wine/proton game opens my headphones switch to a HFP/HSP mode for a few seconds, which is undesirable because of too high volume and distorted sound (I'm listening to music at the same time). So i want to blacklist certain apps from switching to it. I've searched all over the internet and came up with the following config:
monitor.bluez.rules = [
{
matches = [
{
application.process.binary = "*proton*"
}
{
application.process.binary = "*wine*"
}
]
actions = {
update-props = {
media-role.use-headset-profile = false
bluetooth.autoswitch-to-headset-profile = false
bluez5.autoswitch-profile = false
bluez5.auto-connect = [ a2dp_sink ]
bluez5.hw-volume = [ ]
}
}
}
]
monitor.bluez.properties = {
bluez5.enable-sbc-xq = true,
bluez5.hfphsp-backend = "none"
bluez5.codecs = [ sbc_xq ]
bluez5.hw-volume = [ ]
}
The part in update-props
is probably completely wrong and this config works for all apps despite the matches. What is the right way?
Disabling the mic altogether is not an option
I'm on arch linux, everything is up to date, and this is the (only) file at ~/.config/wireplumber/wireplumber.conf.d/settings.conf