diff options
Diffstat (limited to 'home/wayland')
-rw-r--r-- | home/wayland/modules/sway/swayidle.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/home/wayland/modules/sway/swayidle.nix b/home/wayland/modules/sway/swayidle.nix index abb3a10..8e5c208 100644 --- a/home/wayland/modules/sway/swayidle.nix +++ b/home/wayland/modules/sway/swayidle.nix @@ -44,6 +44,11 @@ in { enable = true; systemdTarget = "sway-session.target"; + events = [{ + event = "before-sleep"; + command = swaylock; + }]; + timeouts = [ { timeout = minute * 4; |