diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 3076ecc..cf04c55 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -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 diff --git a/.scripts/kbdbacklight b/.scripts/kbdbacklight new file mode 100755 index 0000000..9aa585a --- /dev/null +++ b/.scripts/kbdbacklight @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +# TODO: support low+medium levels as well +[[ "$1" == "+" ]] && asusctl -k high +[[ "$1" == "-" ]] && asusctl -k off