From fde6c893f0b15bef713450e533f7cadc8e1a2c1e Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Fri, 30 Aug 2024 22:44:17 +0530 Subject: home/wayland/swayidle: exec swaylock before sleep --- home/wayland/modules/sway/swayidle.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'home/wayland') 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; -- cgit v1.2.3