Skip to content

Commit

Permalink
Update default.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ldrahnik authored Feb 19, 2023
1 parent 5bc8e0d commit f57a743
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions conf/default.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
from libevdev import EV_KEY

laptop_mode_actions = [
# backward setting up saved backlight brightness (only in case inverted was previous state! otherwise tmp file does not exist)
# 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",
# backward setting up saved capslock led (only in case inverted was previous state! otherwise tmp file does not exist)
# 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"
]

tablet_mode_actions = [
# save keyboard backlight brightness (do a backup)
"cat /sys/class/leds/asus::kbd_backlight/brightness | sudo tee /tmp/kbd_backlight_brightness",
# 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",
# disable capslock led brightness
"echo 0 | sudo tee /sys/class/leds/input3\:\:capslock/brightness"
]

flip_key = EV_KEY.KEY_PROG2
flip_key = EV_KEY.KEY_PROG2

0 comments on commit f57a743

Please sign in to comment.