From ee92c6100fd18a80309bcaa86d1cbc20f8f2cd49 Mon Sep 17 00:00:00 2001 From: yuzu-eva Date: Fri, 23 Dec 2022 21:20:52 +0100 Subject: added a bunch of stuff and relocated some files --- .../main.lua.d/51-camera-microphone-input-rename.lua | 13 +++++++++++++ .../main.lua.d/51-soundblaster-output-rename.lua | 14 ++++++++++++++ .../main.lua.d/51-starshipmatisse-output-rename.lua | 14 ++++++++++++++ .config/wireplumber/main.lua.d/52-hdmi-card-disable.lua | 12 ++++++++++++ .../main.lua.d/52-soundblaster-input-disable.lua | 12 ++++++++++++ .../main.lua.d/52-starshipmatisse-input-disable.lua | 12 ++++++++++++ 6 files changed, 77 insertions(+) create mode 100644 .config/wireplumber/main.lua.d/51-camera-microphone-input-rename.lua create mode 100644 .config/wireplumber/main.lua.d/51-soundblaster-output-rename.lua create mode 100644 .config/wireplumber/main.lua.d/51-starshipmatisse-output-rename.lua create mode 100644 .config/wireplumber/main.lua.d/52-hdmi-card-disable.lua create mode 100644 .config/wireplumber/main.lua.d/52-soundblaster-input-disable.lua create mode 100644 .config/wireplumber/main.lua.d/52-starshipmatisse-input-disable.lua (limited to '.config/wireplumber/main.lua.d') diff --git a/.config/wireplumber/main.lua.d/51-camera-microphone-input-rename.lua b/.config/wireplumber/main.lua.d/51-camera-microphone-input-rename.lua new file mode 100644 index 0000000..c7db70e --- /dev/null +++ b/.config/wireplumber/main.lua.d/51-camera-microphone-input-rename.lua @@ -0,0 +1,13 @@ +rule = { + matches = { + { + { "node.name", "equals", "alsa_input.usb-SunplusIT_Inc_FHD_Camera_Microphone_01.00.00-02.analog-stereo"}, + }, + }, + apply_properties = { + ["node.description"] = "Camera Microphone", + ["node.nick"] = "Camera Microphone", + }, +} + +table.insert(alsa_monitor.rules,rule) diff --git a/.config/wireplumber/main.lua.d/51-soundblaster-output-rename.lua b/.config/wireplumber/main.lua.d/51-soundblaster-output-rename.lua new file mode 100644 index 0000000..cb5d4a3 --- /dev/null +++ b/.config/wireplumber/main.lua.d/51-soundblaster-output-rename.lua @@ -0,0 +1,14 @@ +rule = { + matches = { + { + { "node.name", "equals", "alsa_output.pci-0000_29_00.0.analog-stereo"}, + }, + }, + + apply_properties = { + ["node.description"] = "Headphones", + ["node.nick"] = "Headphones", + }, +} + +table.insert(alsa_monitor.rules,rule) diff --git a/.config/wireplumber/main.lua.d/51-starshipmatisse-output-rename.lua b/.config/wireplumber/main.lua.d/51-starshipmatisse-output-rename.lua new file mode 100644 index 0000000..0a3c278 --- /dev/null +++ b/.config/wireplumber/main.lua.d/51-starshipmatisse-output-rename.lua @@ -0,0 +1,14 @@ +rule = { + matches = { + { + { "node.name", "equals", "alsa_output.pci-0000_31_00.4.analog-stereo"}, + }, + }, + + apply_properties = { + ["node.description"] = "Speakers", + ["node.nick"] = "Speakers", + }, +} + +table.insert(alsa_monitor.rules,rule) diff --git a/.config/wireplumber/main.lua.d/52-hdmi-card-disable.lua b/.config/wireplumber/main.lua.d/52-hdmi-card-disable.lua new file mode 100644 index 0000000..63eb9e4 --- /dev/null +++ b/.config/wireplumber/main.lua.d/52-hdmi-card-disable.lua @@ -0,0 +1,12 @@ +rule = { + matches = { + { + { "device.name", "equals", "alsa_card.pci-0000_2f_00.1"}, + }, + }, + apply_properties = { + ["device.disabled"] = true, + }, +} + +table.insert(alsa_monitor.rules,rule) diff --git a/.config/wireplumber/main.lua.d/52-soundblaster-input-disable.lua b/.config/wireplumber/main.lua.d/52-soundblaster-input-disable.lua new file mode 100644 index 0000000..825c7d9 --- /dev/null +++ b/.config/wireplumber/main.lua.d/52-soundblaster-input-disable.lua @@ -0,0 +1,12 @@ +rule = { + matches = { + { + { "node.name", "equals", "alsa_input.pci-0000_29_00.0.analog-stereo"}, + }, + }, + apply_properties = { + ["node.disabled"] = true, + }, +} + +table.insert(alsa_monitor.rules,rule) diff --git a/.config/wireplumber/main.lua.d/52-starshipmatisse-input-disable.lua b/.config/wireplumber/main.lua.d/52-starshipmatisse-input-disable.lua new file mode 100644 index 0000000..51edd83 --- /dev/null +++ b/.config/wireplumber/main.lua.d/52-starshipmatisse-input-disable.lua @@ -0,0 +1,12 @@ +rule = { + matches = { + { + { "node.name", "equals", "alsa_input.pci-0000_31_00.4.analog-stereo"}, + }, + }, + apply_properties = { + ["node.disabled"] = true, + }, +} + +table.insert(alsa_monitor.rules,rule) -- cgit v1.2.3