Last active
October 18, 2024 07:51
-
-
Save sa7dse/24c7ca772e4e2bc5100cba76596a5e78 to your computer and use it in GitHub Desktop.
rename rodecaster pro 2 in pipewire, in the SPA-JSON format
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Renames the outputs and inputs of the RODE RODECaster Pro II. | |
# Based on the lua version: https://gist.github.com/ngandrass/c81cda4903b8429262fe80dc69d8252f | |
# | |
# Place this file inside ~/.config/wireplumber/wireplumber.conf.d/ | |
# | |
# Tips on using the RODE RODECaster Pro II on Linux: | |
# - Use PipeWire together with WirePlumber. I'm using the following packages on | |
# Arch Linux: pipewire pipewire-alsa pipewire-pulse pipewire-jack wireplumber. | |
# Optional packages: qpwgraph | |
# - Configure the RODE RODECaster Pro II to use the 'Pro Audio' profile | |
# - Your node names might differ. Run `pactl list sinks` and `pactl list sources` to check assigned names. | |
monitor.alsa.rules = [ | |
{ | |
matches = [ | |
{ node.name = "~alsa_output.usb-R__DE_R__DECaster_Pro_II-00.pro-output-0" } | |
], | |
actions = { | |
update-props = { | |
node.description = "RODECaster Pro II (Secondary)", | |
} | |
} | |
}, | |
{ | |
matches = [ | |
{ node.name = "~alsa_output.usb-R__DE_RODECaster_Pro_II_.*.pro-output-1" } | |
], | |
actions = { | |
update-props = { | |
node.description = "RODECaster Pro II (Main)", | |
} | |
} | |
}, | |
{ | |
matches = [ | |
{ node.name = "~alsa_output.usb-R__DE_RODECaster_Pro_II_.*.pro-output-0" } | |
], | |
actions = { | |
update-props = { | |
node.description = "RODECaster Pro II (Chat)", | |
} | |
} | |
}, | |
{ | |
matches = [ | |
{ node.name = "~alsa_input.usb-R__DE_R__DECaster_Pro_II-00.pro-input-0" } | |
], | |
actions = { | |
update-props = { | |
node.description = "RODECaster Pro II (Secondary)", | |
} | |
} | |
}, | |
{ | |
matches = [ | |
{ node.name = "~alsa_input.usb-R__DE_RODECaster_Pro_II_.*.pro-input-1" } | |
], | |
actions = { | |
update-props = { | |
node.description = "RODECaster Pro II (Main)", | |
} | |
} | |
}, | |
{ | |
matches = [ | |
{ node.name = "~alsa_input.usb-R__DE_RODECaster_Pro_II_.*.pro-input-0" } | |
], | |
actions = { | |
update-props = { | |
node.description = "RODECaster Pro II (Chat)", | |
} | |
} | |
}, | |
{ | |
matches = [ | |
{ device.product.name = "RODECaster Pro II" } | |
] | |
actions = { | |
update-props = { | |
device.profile = "pro-audio" | |
} | |
} | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment