summaryrefslogtreecommitdiff
path: root/ar/.config/wireplumber/main.lua.d/51-device-priority.conf
blob: 13c4987546b6f43b0c5647992fa2e07bbfc83fa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
monitor.alsa.rules = [
  {
    matches = [
      {
        node.name = "~alsa_output.*hdmi.*"
      }
    ]
    actions = {
      update-props = {
        priority.driver        = 2000
        priority.session       = 2000
      }
    }
  }
  {
    matches = [
      {
        node.name = "~alsa_output.*analog.*"
      }
    ]
    actions = {
      update-props = {
        priority.driver        = 1000
        priority.session       = 1000
      }
    }
  }
]

monitor.bluez.rules = [
  {
    matches = [
      {
        device.name = "~bluez_card.*"
      }
    ]
    actions = {
      update-props = {
        priority.driver        = 3000
        priority.session       = 3000
        bluez5.auto-connect    = [ a2dp_sink ]
      }
    }
  }
]

node.rules = [
  {
    matches = [
      {
        node.name = "~bluez_output.*"
      }
    ]
    actions = {
      update-props = {
        priority.driver        = 3000
        priority.session       = 3000
      }
    }
  }
  {
    matches = [
      {
        node.name = "~bluez_input.*"
      }
    ]
    actions = {
      update-props = {
        priority.driver        = 3000
        priority.session       = 3000
      }
    }
  }
]