From a9144544ac97c2ef7866735b010d0f1f40a24536 Mon Sep 17 00:00:00 2001 From: assada Date: Wed, 15 May 2024 16:50:27 +0300 Subject: [PATCH] . --- sway/autostart | 3 ++- sway/bindings | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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