commit 63882e8dd250e6126fbe4836e538b849ba9516b6
parent f47adcf771dcb998562a30f9e33194b71a4ed9ef
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Tue, 1 Jul 2025 19:36:54 +0200
parent f47adcf771dcb998562a30f9e33194b71a4ed9ef
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Tue, 1 Jul 2025 19:36:54 +0200
config/home/zaphyra/services: add `swayidle`
1 file changed, 19 insertions(+), 0 deletions(-)
diff --git a/config/home/zaphyra/services/swayidle.nix b/config/home/zaphyra/services/swayidle.nix @@ -0,0 +1,19 @@ +{ lib, pkgs, ... }: + +{ + + services.swayidle = { + enable = true; + timeouts = [ + { + timeout = 175; + command = "${lib.getExe pkgs.niri-stable} msg action power-off-monitors"; + } + { + timeout = 180; + command = "${lib.getExe' pkgs.systemd "loginctl"} lock-session"; + } + ]; + }; + +}