diff --git a/README.md b/README.md index b5981b8..7ea89d4 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ If you find the project useful, do not forget to give project a [![GitHub stars] - By default disable backlight of keyboard in tablet mode, Remember latest backlight levels via temp file located in `/tmp` - By default disable backlight of NumLock key in tablet mode - By default disable backlight of NumberPad in tablet mode, remember latest backlight level via temp file located in `/tmp` +- By default disable backlight of MicMute key in tablet mode, remember latest backlight level via temp file located in `/tmp` - When does not exist device `Intel HID switches` yet, driver will try find again every 5s and will use for first time flip event from `Asus WMI hotkeys`, concretely will catch configurable key, by default `EV_KEY.KEY_PROG2` ## Preview diff --git a/conf/default.py b/conf/default.py index f753566..1a3656f 100644 --- a/conf/default.py +++ b/conf/default.py @@ -4,7 +4,9 @@ # 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/input3_capslock_brightness && cat /tmp/input3_capslock_brightness | sudo tee /sys/class/leds/input3\:\:capslock/brightness" + "test -f /tmp/input3_capslock_brightness && cat /tmp/input3_capslock_brightness | sudo tee /sys/class/leds/input3::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", ] tablet_mode_actions = [ @@ -13,9 +15,13 @@ # 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/input3\:\:capslock/brightness | sudo tee /tmp/input3_capslock_brightness", + "cat /sys/class/leds/input3::capslock/brightness | sudo tee /tmp/input3_capslock_brightness", # disable capslock led brightness - "echo 0 | sudo tee /sys/class/leds/input3\:\:capslock/brightness" + "echo 0 | sudo tee /sys/class/leds/input3::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 + "echo 0 | sudo tee /sys/class/leds/platform::micmute/brightness", ] flip_key = EV_KEY.KEY_PROG2