Skip to content

Commit

Permalink
Fixed changing number /sys/class/leds/input<number> by wildcard
Browse files Browse the repository at this point in the history
  • Loading branch information
ldrahnik committed Jan 19, 2024
1 parent 9b0dd6f commit 9bf2d01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions conf/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# setting up saved keyboard backlight brightness (restore from backup)
"test -f /tmp/kbd_backlight_brightness && cat /tmp/kbd_backlight_brightness | sudo tee /sys/class/leds/asus::kbd_backlight/brightness",
# setting up saved capslock backlight brightness (restore from backup)
"test -f /tmp/input2_capslock_brightness && cat /tmp/input2_capslock_brightness | sudo tee /sys/class/leds/input2::capslock/brightness",
"test -f /tmp/input_capslock_brightness && cat /tmp/input_capslock_brightness | sudo tee /sys/class/leds/input*::capslock/brightness",
# setting up saved micmute backlight brightness (restore from backup)
"test -f /tmp/micmute_brightness && cat /tmp/micmute_brightness | sudo tee /sys/class/leds/platform::micmute/brightness",
# setting up saved camera backlight brightness (restore from backup)
Expand All @@ -17,9 +17,9 @@
# disable keyboard backlight brightness
"echo 0 | sudo tee /sys/class/leds/asus::kbd_backlight/brightness",
# save capslock led brightness (do a backup)
"cat /sys/class/leds/input2::capslock/brightness | sudo tee /tmp/input2_capslock_brightness",
"cat /sys/class/leds/input*::capslock/brightness | head -n 1 | sudo tee /tmp/input_capslock_brightness",
# disable capslock led brightness
"echo 0 | sudo tee /sys/class/leds/input2::capslock/brightness",
"echo 0 | sudo tee /sys/class/leds/input*::capslock/brightness",
# save micmute led brightness (do a backup)
"cat /sys/class/leds/platform::micmute/brightness | sudo tee /tmp/micmute_brightness",
# disable micmute led brightness
Expand Down

0 comments on commit 9bf2d01

Please sign in to comment.