swayidle setup (lock(lid, time), kbd light)

This commit is contained in:
assada 2024-05-24 14:51:57 +03:00
parent fdf489dfe3
commit 8f3a5a2b2e
Signed by: assada
GPG Key ID: D4860A938E541F06
2 changed files with 8 additions and 1 deletions

View File

@ -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'

View File

@ -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
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