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 {