From 8f3a5a2b2e91daa5a7305c5f0ba6fa4a577ba6ea Mon Sep 17 00:00:00 2001 From: assada Date: Fri, 24 May 2024 14:51:57 +0300 Subject: [PATCH] swayidle setup (lock(lid, time), kbd light) --- sway/autostart | 3 +++ sway/bindings | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) 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