From 946164e2b3f7631289814c8f462f2cc39a80a7b9 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 28 Jan 2025 15:01:44 +0100 Subject: ... --- accounts/gkleen@sif/default.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/accounts/gkleen@sif/default.nix b/accounts/gkleen@sif/default.nix index 6e6e98f7..58cfb425 100644 --- a/accounts/gkleen@sif/default.nix +++ b/accounts/gkleen@sif/default.nix @@ -80,7 +80,7 @@ let ]; }; - lockCommand = "${config.systemd.package}/bin/systemctl --user start gtklock.service"; + lockCommand = "${lib.getExe' config.systemd.package "systemctl"} --user start gtklock.service"; in { imports = with flake.nixosModules.userProfiles.${userName}; [ mpv yt-dlp (args: import ./xcompose.nix (inputs // args)) @@ -359,16 +359,13 @@ in { enable = true; events = [ { event = "before-sleep"; command = lockCommand; } - # { event = "after-resume"; command = "${cfg.wayland.windowManager.hyprland.package}/bin/hyprctl dispatch dpms on"; } { event = "lock"; command = lockCommand; } ]; timeouts = [ - # { timeout = 300; - # command = "${cfg.wayland.windowManager.hyprland.package}/bin/hyprctl dispatch dpms off"; - # } { timeout = 330; command = lockCommand; } ]; extraArgs = [ + "-w" "idlehint" "30" ]; }; -- cgit v1.2.3