diff --git a/sway/autostart b/sway/autostart index acf8fc8..ea848d2 100644 --- a/sway/autostart +++ b/sway/autostart @@ -29,3 +29,6 @@ exec_always ~/.config/sway/scripts/statusbar # Keyboard backlight on exec_always light -As "sysfs/leds/tpacpi::kbd_backlight" 100 + +# Swaylock +exec swayidle timeout 300 'swaylock' before-sleep 'swaylock' after-resume 'light -As "sysfs/leds/tpacpi::kbd_backlight" 100' diff --git a/sway/bindings b/sway/bindings index 48479db..78edfc3 100644 --- a/sway/bindings +++ b/sway/bindings @@ -177,4 +177,8 @@ bindsym $mod+equal scratchpad show bindsym $mod+Control+Shift+Right move workspace to output right bindsym $mod+Control+Shift+Left move workspace to output left bindsym $mod+Control+Shift+Down move workspace to output down -bindsym $mod+Control+Shift+Up move workspace to output up \ No newline at end of file +bindsym $mod+Control+Shift+Up move workspace to output up + + +bindswitch lid:on exec light -As "sysfs/leds/tpacpi::kbd_backlight" 10 +bindswitch lid:off exec light -As "sysfs/leds/tpacpi::kbd_backlight" 10