Lock before suspend

This commit is contained in:
Vili Sinervä 2025-05-28 00:04:44 +03:00
parent 96de503b1c
commit cfcd6010e3
Signed by: Vili Sinervä
SSH key fingerprint: SHA256:FladqYjaE4scJY3Hi+gnShZ6ygnTJgixy0I6BAoHyos

View file

@ -101,7 +101,7 @@ pkgs.writeText "i3-conf" ''
set $mode_system (l)ock, (s)uspend, (h)ibernate, (r)eboot, (S)hutdown set $mode_system (l)ock, (s)uspend, (h)ibernate, (r)eboot, (S)hutdown
mode "$mode_system" { mode "$mode_system" {
bindsym l exec --no-startup-id i3lock, mode "default" bindsym l exec --no-startup-id i3lock, mode "default"
bindsym s exec --no-startup-id systemctl suspend, mode "default" bindsym s exec --no-startup-id "i3lock; systemctl suspend", mode "default"
bindsym h exec --no-startup-id systemctl hibernate, mode "default" bindsym h exec --no-startup-id systemctl hibernate, mode "default"
bindsym r exec --no-startup-id systemctl reboot, mode "default" bindsym r exec --no-startup-id systemctl reboot, mode "default"
bindsym Shift+s exec --no-startup-id systemctl poweroff, mode "default" bindsym Shift+s exec --no-startup-id systemctl poweroff, mode "default"