about summary refs log tree commit diff
path: root/home/profiles/gui
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-10-07 15:12:02 +0900
committersefidel <contact@sefidel.net>2023-10-07 15:12:02 +0900
commitc03588dcfc6aa07c320615ae9816fde68548cf03 (patch)
tree7e7d0733f9745688b0fcfacc91ac86f2536b7156 /home/profiles/gui
parent541b2788a8642e72357d7483737151742ebabc98 (diff)
downloadnixrc-c03588dcfc6aa07c320615ae9816fde68548cf03.tar.gz
nixrc-c03588dcfc6aa07c320615ae9816fde68548cf03.zip
feat(home/gui): swayidle: use loginctl to lock before sleep
Diffstat (limited to 'home/profiles/gui')
-rw-r--r--home/profiles/gui/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/home/profiles/gui/default.nix b/home/profiles/gui/default.nix
index c8bbd7d..2fbb505 100644
--- a/home/profiles/gui/default.nix
+++ b/home/profiles/gui/default.nix
@@ -189,7 +189,7 @@ in
         {
           enable = true;
           events = [
-            { event = "before-sleep"; command = lockCommand; }
+            { event = "before-sleep"; command = "${pkgs.systemd}/bin/loginctl lock-session"; }
             { event = "lock"; command = lockCommand; }
           ];
           timeouts = [