hypridle fix on non-desktops

This commit is contained in:
Reid 2026-04-05 19:02:28 -07:00
parent a1057f508a
commit 1c73349f55
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD

View file

@ -37,17 +37,17 @@ in {
} }
] ++ optionals (!cfg.desktop) [ ] ++ 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-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 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-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 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 on-timeout = "${pkgs.systemd}/bin/systemctl suspend"; # sleep/suspend
} }
] ++ optional config.modules.desktop.niri.enable { ] ++ optional config.modules.desktop.niri.enable {