From cfcd6010e3f1cc5fc9282ca8feecceb7630e7a79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vili=20Sinerv=C3=A4?= Date: Wed, 28 May 2025 00:04:44 +0300 Subject: [PATCH] Lock before suspend --- program-config-files/i3.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program-config-files/i3.nix b/program-config-files/i3.nix index 237d6cb..12dede5 100644 --- a/program-config-files/i3.nix +++ b/program-config-files/i3.nix @@ -101,7 +101,7 @@ pkgs.writeText "i3-conf" '' set $mode_system (l)ock, (s)uspend, (h)ibernate, (r)eboot, (S)hutdown mode "$mode_system" { 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 r exec --no-startup-id systemctl reboot, mode "default" bindsym Shift+s exec --no-startup-id systemctl poweroff, mode "default"