keyboard backlight

This commit is contained in:
ktyl 2021-08-20 12:08:09 +01:00
parent de246ef275
commit c6343392f8
2 changed files with 14 additions and 1 deletions

View File

@ -139,13 +139,21 @@ super + shift + g
$SCRIPTS/toggle-gaps
#
# screen brightness
# screen backlight
#
XF86MonBrightnessUp
$SCRIPTS/backlight +
XF86MonBrightnessDown
$SCRIPTS/backlight -
#
# keyboard backlight
#
XF86KbdBrightnessUp
$SCRIPTS/kbdbacklight +
XF86KbdBrightnessDown
$SCRIPTS/kbdbacklight -
#
# media keys

5
.scripts/kbdbacklight Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
# TODO: support low+medium levels as well
[[ "$1" == "+" ]] && asusctl -k high
[[ "$1" == "-" ]] && asusctl -k off