Install asusctl on ROG machines to get out-of-the-box keyboard light sync

This commit is contained in:
David Heinemeier Hansson
2026-02-05 09:23:00 +01:00
parent ba14cd36dd
commit e487dace43
7 changed files with 14 additions and 8 deletions

View File

@@ -2,9 +2,7 @@
# The mic boost is way too high by default, causing clipping.
# Sets levels and stores ALSA state so it persists across reboots.
if [[ "$(cat /sys/class/dmi/id/sys_vendor 2>/dev/null)" == "ASUSTeK COMPUTER INC." ]] &&
grep -q "ROG" /sys/class/dmi/id/product_family 2>/dev/null; then
if omarchy-hw-asus-rog; then
for card in /proc/asound/card*/codec*; do
if grep -q "ALC285" "$card" 2>/dev/null; then
cardnum=$(echo "$card" | grep -oP 'card\K\d+')