From 1c73349f55263b9298b9f4b54b2b899248612a43 Mon Sep 17 00:00:00 2001 From: reidlab Date: Sun, 5 Apr 2026 19:02:28 -0700 Subject: [PATCH] hypridle fix on non-desktops --- modules/desktop/hypridle.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/desktop/hypridle.nix b/modules/desktop/hypridle.nix index 3d208cb..eaccb65 100644 --- a/modules/desktop/hypridle.nix +++ b/modules/desktop/hypridle.nix @@ -37,17 +37,17 @@ in { } ] ++ optionals (!cfg.desktop) [ { - timeout = toDesktopTimeout 60; # 1 min + timeout = 60; # 1 min on-timeout = "${lib.getExe pkgs.brightnessctl} -c backlight -s set 20"; # dim screen, save brightness state on-resume = "${lib.getExe pkgs.brightnessctl} -c backlight -r"; # restore previous screen brightness state } { - timeout = toDesktopTimeout 60; # 1 min + timeout = 60; # 1 min on-timeout = "${lib.getExe pkgs.brightnessctl} -d '*:kbd_backlight' -s set 0"; # turn off keyboard backlight, save state on-resume = "${lib.getExe pkgs.brightnessctl} -d '*:kbd_backlight' -r"; # restore previous keyboard backlight state } { - timeout = toDesktopTimeout (60 * 15); # 15 min + timeout = 60 * 15; # 15 min on-timeout = "${pkgs.systemd}/bin/systemctl suspend"; # sleep/suspend } ] ++ optional config.modules.desktop.niri.enable {