diff --git a/sway/autostart b/sway/autostart index 3a594b1..acf8fc8 100644 --- a/sway/autostart +++ b/sway/autostart @@ -27,4 +27,5 @@ exec_always swayrd exec_always ~/.config/sway/scripts/statusbar - +# Keyboard backlight on +exec_always light -As "sysfs/leds/tpacpi::kbd_backlight" 100 diff --git a/sway/bindings b/sway/bindings index ed3a57f..2733ca7 100644 --- a/sway/bindings +++ b/sway/bindings @@ -152,6 +152,11 @@ bindsym XF86AudioPrev exec playerctl previous bindsym XF86MonBrightnessUp exec light -A 5 && light -G | cut -d'.' -f1 > $SWAYSOCK.wob bindsym XF86MonBrightnessDown exec light -U 5 && light -G | cut -d'.' -f1 > $SWAYSOCK.wob +# Bindings for keyboard backlight +bindsym XF86KbdBrightnessUp exec light -As "sysfs/leds/tpacpi::kbd_backlight" 10 +bindsym XF86KbdBrightnessDown exec light -Us "sysfs/leds/tpacpi::kbd_backlight" 10 + +bindsym XF86Tools exec code # # App shortcuts