# AirPods-specific Bluetooth policy override.
# Keep the device on A2DP/AAC and avoid restoring stale device state.

wireplumber.settings = {
  device.restore-profile = false
  device.restore-routes = false
}

monitor.bluez.rules = [
  {
    matches = [
      {
        device.name = "bluez_card.18_3F_70_4E_02_CC"
      }
    ]
    actions = {
      update-props = {
        device.profile = "a2dp-sink"
        bluez5.auto-connect = [ a2dp_sink ]
        bluez5.a2dp.aac.bitratemode = 0
      }
    }
  }
]
