Skip to content

Commit

Permalink
Added during flipping disabling/enabling MicMute key in default layout
Browse files Browse the repository at this point in the history
  • Loading branch information
ldrahnik committed Nov 28, 2023
1 parent c06260a commit 5f27f3f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 9 additions & 3 deletions conf/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand All @@ -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

0 comments on commit 5f27f3f

Please sign in to comment.