From 6a72c4bdf34afeb2e0187420aa5d578be217791f Mon Sep 17 00:00:00 2001 From: tomoron Date: Wed, 26 Feb 2025 17:07:27 +0100 Subject: [PATCH] set auto lock time to 5 minutes and fix optional autosuspend --- homeConfigs/modules/wayland/hypridle.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/homeConfigs/modules/wayland/hypridle.nix b/homeConfigs/modules/wayland/hypridle.nix index f24de7a..6859cd0 100644 --- a/homeConfigs/modules/wayland/hypridle.nix +++ b/homeConfigs/modules/wayland/hypridle.nix @@ -15,18 +15,18 @@ general.before_sleep_cmd = "loginctl lock-session"; listener = [ { - timeout = 150; + timeout = 300; on-timeout = "brightnessctl -s set 0"; on-resume = "brightnessctl -r"; } { - timeout = 150; + timeout = 300; on-timeout = "loginctl lock-session"; } - ] ++ lib.lists.optional config.mods.hyprland.autoSuspend [{ + ] ++ lib.lists.optional config.mods.hyprland.autoSuspend { timeout = 600; on-timeout = "systemctl suspend"; - }]; + }; }; }; };