From 273d6e920712cddca48e44deb3d8497290f3a3fc Mon Sep 17 00:00:00 2001 From: Ahwx Date: Fri, 26 Dec 2025 20:17:00 +0100 Subject: [PATCH] feat: work with newly-made `caffeine` package --- modules/home/hyprland/config.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/home/hyprland/config.nix b/modules/home/hyprland/config.nix index c2d23a3..e683cd2 100644 --- a/modules/home/hyprland/config.nix +++ b/modules/home/hyprland/config.nix @@ -79,13 +79,13 @@ } listener { - timeout = 165 # in seconds - on-timeout = pgrep hyprlock || hyprlock + timeout = 300 # 5m in seconds + on-timeout = if [ -f "$HOME/.config/hypr/caffeine_mode" ]; then exit 0; else pgrep hyprlock || hyprlock; fi } listener { - timeout = 1800 # in seconds - on-timeout = systemctl suspend; hyprlock + timeout = 1800 # 30m in seconds + on-timeout = if [ -f "$HOME/.config/hypr/caffeine_mode" ]; then exit 0; else systemctl suspend; hyprlock; fi } '';