feat(pipewire): Move from lua configs to conf files

This commit is contained in:
histalek 2024-10-09 22:45:11 +02:00
parent 209acff9f9
commit f030971d6d
Signed by: histalek
SSH key fingerprint: SHA256:6a6N2Wzk73nwURUHC/ubbCyqdB6yfie0Jv/NGvRcsIE
5 changed files with 88 additions and 39 deletions

View file

@ -1,15 +0,0 @@
rule = {
matches = {
{
{ "device.name", "equals", "alsa_card.pci-0000_0a_00.1" },
},
{
{ "device.name", "equals", "alsa_card.pci-0000_06_00.1" },
},
},
apply_properties = {
["device.disabled"] = true,
},
}
table.insert(alsa_monitor.rules, rule)

View file

@ -1,12 +0,0 @@
rule = {
matches = {
{
{ "device.name", "equals", "alsa_card.pci-0000_0c_00.4" },
},
},
apply_properties = {
["device.disabled"] = true,
},
}
table.insert(alsa_monitor.rules, rule)

View file

@ -1,12 +0,0 @@
rule = {
matches = {
{
{ "node.name", "equals", "alsa_input.usb-SteelSeries_SteelSeries_Arctis_7-00.mono-chat" },
},
},
apply_properties = {
["node.disabled"] = true,
},
}
table.insert(alsa_monitor.rules, rule)

View file

@ -0,0 +1,62 @@
monitor.alsa.rules = [
{
matches = [
{
device.name = "alsa_card.pci-0000_08_00.1"
}
]
actions = {
update-props = {
device.disabled = true
}
}
},
{
matches = [
{
device.name = "alsa_card.pci-0000_0a_00.1"
}
]
actions = {
update-props = {
device.disabled = true
}
}
},
{
matches = [
{
device.name = "alsa_card.pci-0000_0a_00.4"
}
]
actions = {
update-props = {
device.disabled = true
}
}
},
{
matches = [
{
device.name = "alsa_card.pci-0000_0c_00.4"
}
]
actions = {
update-props = {
device.disabled = true
}
}
},
{
matches = [
{
node.name = "alsa_input.usb-SteelSeries_SteelSeries_Arctis_7-00.mono-chat"
}
]
actions = {
update-props = {
node.disabled = true
}
}
}
]

View file

@ -0,0 +1,26 @@
monitor.alsa.rules = [
{
matches = [
{
node.name = "alsa_output.usb-SteelSeries_SteelSeries_Arctis_7-00.stereo-game"
}
]
actions = {
update-props = {
node.description = "Headset (Game)"
}
}
},
{
matches = [
{
node.name = "alsa_output.usb-SteelSeries_SteelSeries_Arctis_7-00.mono-chat"
}
]
actions = {
update-props = {
node.description = "Headset (Chat)"
}
}
}
]