Initial build setup for x86_64 Stormux.

This commit is contained in:
Storm Dragon
2025-11-19 03:26:25 -05:00
parent fffe426d29
commit 3c5490ea24
91 changed files with 2266 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
-- Prioritize analog and USB audio devices over HDMI
-- This ensures real sound cards are selected by default
rule = {
matches = {
{
{ "device.form-factor", "equals", "internal" },
},
{
{ "device.form-factor", "equals", "speaker" },
},
{
{ "device.form-factor", "equals", "headphone" },
},
{
{ "device.bus", "equals", "usb" },
},
{
{ "node.name", "matches", "alsa_output.pci-*analog*" },
},
{
{ "node.name", "matches", "alsa_output.usb-*" },
},
},
apply_properties = {
["priority.driver"] = 1000,
["priority.session"] = 1000,
},
}
table.insert(alsa_monitor.rules, rule)

View File

@@ -0,0 +1,22 @@
-- Deprioritize HDMI audio devices
-- This ensures analog/USB audio devices are preferred over HDMI
rule = {
matches = {
{
{ "device.name", "matches", "hdmi*" },
},
{
{ "device.name", "matches", "HDMI*" },
},
{
{ "node.name", "matches", "alsa_output.pci-*hdmi*" },
},
},
apply_properties = {
["priority.driver"] = 100,
["priority.session"] = 100,
},
}
table.insert(alsa_monitor.rules, rule)