From 5ffd4f77f6fb57e5b24a4b794218b5e5d99cea67 Mon Sep 17 00:00:00 2001 From: afonsofrancof Date: Mon, 31 Oct 2022 21:58:13 +0000 Subject: [PATCH] Added audio configuration --- .config/wireplumber/main.lua.d/51-acer-monitor.lua | 12 ++++++++++++ .config/wireplumber/main.lua.d/51-built-in-input.lua | 12 ++++++++++++ .../wireplumber/main.lua.d/51-built-in-output.lua | 12 ++++++++++++ .../wireplumber/main.lua.d/51-focusrite-input.lua | 12 ++++++++++++ .../wireplumber/main.lua.d/51-focusrite-output.lua | 12 ++++++++++++ 5 files changed, 60 insertions(+) create mode 100644 .config/wireplumber/main.lua.d/51-acer-monitor.lua create mode 100644 .config/wireplumber/main.lua.d/51-built-in-input.lua create mode 100644 .config/wireplumber/main.lua.d/51-built-in-output.lua create mode 100644 .config/wireplumber/main.lua.d/51-focusrite-input.lua create mode 100644 .config/wireplumber/main.lua.d/51-focusrite-output.lua diff --git a/.config/wireplumber/main.lua.d/51-acer-monitor.lua b/.config/wireplumber/main.lua.d/51-acer-monitor.lua new file mode 100644 index 0000000..25f6e20 --- /dev/null +++ b/.config/wireplumber/main.lua.d/51-acer-monitor.lua @@ -0,0 +1,12 @@ +rule ={ + matches = { + { + {"node.name","equals","GA104 High Definition Audio Controller Digital Stereo (HDMI 2)"}, + } + }, + apply_properties = { + ["node.description"] = "Acer Monitor Speakers", + ["node.nick"] = "Acer Monitor Speakers" + } +} +table.insert(alsa_monitor.rules,rule) diff --git a/.config/wireplumber/main.lua.d/51-built-in-input.lua b/.config/wireplumber/main.lua.d/51-built-in-input.lua new file mode 100644 index 0000000..353f493 --- /dev/null +++ b/.config/wireplumber/main.lua.d/51-built-in-input.lua @@ -0,0 +1,12 @@ +rule ={ + matches = { + { + {"node.name","equals","alsa_input.platform-snd_aloop.0.analog-stereo"}, + } + }, + apply_properties = { + ["node.description"] = "Built-in Audio Input", + ["node.nick"] = "Built-in Audio Input" + } +} +table.insert(alsa_monitor.rules,rule) diff --git a/.config/wireplumber/main.lua.d/51-built-in-output.lua b/.config/wireplumber/main.lua.d/51-built-in-output.lua new file mode 100644 index 0000000..75fd345 --- /dev/null +++ b/.config/wireplumber/main.lua.d/51-built-in-output.lua @@ -0,0 +1,12 @@ +rule ={ + matches = { + { + {"node.name","equals","alsa_output.platform-snd_aloop.0.analog-stereo"}, + } + }, + apply_properties = { + ["node.description"] = "Built-in Audio Output", + ["node.nick"] = "Built-in Audio Output" + } +} +table.insert(alsa_monitor.rules,rule) diff --git a/.config/wireplumber/main.lua.d/51-focusrite-input.lua b/.config/wireplumber/main.lua.d/51-focusrite-input.lua new file mode 100644 index 0000000..de81862 --- /dev/null +++ b/.config/wireplumber/main.lua.d/51-focusrite-input.lua @@ -0,0 +1,12 @@ +rule ={ + matches = { + { + {"node.name","equals","alsa_input.usb-Focusrite_Scarlett_Solo_USB_Y70DAWR074D97D-00.analog-stereo"}, + } + }, + apply_properties = { + ["node.description"] = "Scarlett Solo Interface Input", + ["node.nick"] = "Scarlett Solo Input" + } +} +table.insert(alsa_monitor.rules,rule) diff --git a/.config/wireplumber/main.lua.d/51-focusrite-output.lua b/.config/wireplumber/main.lua.d/51-focusrite-output.lua new file mode 100644 index 0000000..3727690 --- /dev/null +++ b/.config/wireplumber/main.lua.d/51-focusrite-output.lua @@ -0,0 +1,12 @@ +rule ={ + matches = { + { + {"node.name","equals","alsa_output.usb-Focusrite_Scarlett_Solo_USB_Y70DAWR074D97D-00.iec958-stereo"}, + } + }, + apply_properties = { + ["node.description"] = "Scarlett Solo Interface Output", + ["node.nick"] = "Scarlett Solo Output" + } +} +table.insert(alsa_monitor.rules,rule)