124 lines
2.5 KiB
TOML
124 lines
2.5 KiB
TOML
schema_version = 1
|
|
id = "arch-pipewire"
|
|
startup = "adopt"
|
|
new_stream = "adopt"
|
|
|
|
[ui]
|
|
default_controller = "apc-mini"
|
|
theme = "default"
|
|
|
|
[runtime]
|
|
poll_interval_ms = 10
|
|
|
|
[audio]
|
|
adapter = "pulse"
|
|
max_gain = 1.0
|
|
|
|
[[applications]]
|
|
id = "music"
|
|
label = "Music"
|
|
selectors = [
|
|
{ field = "application.name", regex = '(?i)(qobuz|qbz|spotify|music)' },
|
|
{ field = "application.process.binary", regex = '(?i)(qobuz|qbz|spotify)' },
|
|
]
|
|
|
|
[[applications]]
|
|
id = "browser"
|
|
label = "Browser"
|
|
selectors = [
|
|
{ field = "application.name", regex = '(?i)(firefox|waterfox|chromium|chrome|brave|librewolf)' },
|
|
{ field = "application.process.binary", regex = '(?i)^(firefox|waterfox|chromium|chrome|brave|librewolf)(-.*)?$' },
|
|
]
|
|
|
|
[[groups]]
|
|
id = "media"
|
|
label = "Media group"
|
|
members = ["music", "browser"]
|
|
volume_mode = "absolute"
|
|
|
|
[[surfaces]]
|
|
id = "apc-mini"
|
|
label = "APC MINI"
|
|
input_port = "APC MINI:APC MINI MIDI 1"
|
|
usb_vendor_id = "09e8"
|
|
usb_product_id = "0028"
|
|
usb_serial = "Ver00.10"
|
|
identity_policy = "require_unique"
|
|
motorized = false
|
|
|
|
[[faders]]
|
|
id = "music-fader"
|
|
target = { kind = "application", id = "music" }
|
|
pickup = true
|
|
pickup_tolerance = 0.02
|
|
|
|
[[faders]]
|
|
id = "browser-fader"
|
|
target = { kind = "application", id = "browser" }
|
|
pickup = true
|
|
pickup_tolerance = 0.02
|
|
|
|
[[faders]]
|
|
id = "media-fader"
|
|
target = { kind = "group", id = "media" }
|
|
pickup = true
|
|
pickup_tolerance = 0.02
|
|
|
|
[[faders]]
|
|
id = "master-fader"
|
|
target = { kind = "output", id = "default" }
|
|
pickup = true
|
|
pickup_tolerance = 0.02
|
|
|
|
[[bindings]]
|
|
surface = "apc-mini"
|
|
fader = "music-fader"
|
|
action = "volume"
|
|
message = { kind = "cc", channel = 1, number = 48 }
|
|
|
|
[[bindings]]
|
|
surface = "apc-mini"
|
|
fader = "browser-fader"
|
|
action = "volume"
|
|
message = { kind = "cc", channel = 1, number = 49 }
|
|
|
|
[[bindings]]
|
|
surface = "apc-mini"
|
|
fader = "media-fader"
|
|
action = "volume"
|
|
message = { kind = "cc", channel = 1, number = 50 }
|
|
|
|
[[bindings]]
|
|
surface = "apc-mini"
|
|
fader = "master-fader"
|
|
action = "volume"
|
|
message = { kind = "cc", channel = 1, number = 56 }
|
|
|
|
[[bindings]]
|
|
surface = "apc-mini"
|
|
fader = "music-fader"
|
|
action = "toggle_mute"
|
|
edge = "press"
|
|
message = { kind = "note", channel = 1, number = 64 }
|
|
|
|
[[bindings]]
|
|
surface = "apc-mini"
|
|
fader = "browser-fader"
|
|
action = "toggle_mute"
|
|
edge = "press"
|
|
message = { kind = "note", channel = 1, number = 65 }
|
|
|
|
[[bindings]]
|
|
surface = "apc-mini"
|
|
fader = "media-fader"
|
|
action = "toggle_mute"
|
|
edge = "press"
|
|
message = { kind = "note", channel = 1, number = 66 }
|
|
|
|
[[bindings]]
|
|
surface = "apc-mini"
|
|
fader = "master-fader"
|
|
action = "toggle_mute"
|
|
edge = "press"
|
|
message = { kind = "note", channel = 1, number = 98 }
|