fix(hyprland): stop idle dpms poweroff

This commit is contained in:
2026-10-10 08:29:01 -04:00
parent 4908c4751f
commit c8a596aa39

View File

@@ -27,11 +27,6 @@ in
description = "Seconds of inactivity before the screen locks.";
};
screenOffTimeout = lib.mkOption {
type = lib.types.ints.positive;
default = 360;
description = "Seconds of inactivity before the displays are powered off.";
};
};
config = lib.mkIf cfg.enable {
@@ -46,7 +41,7 @@ in
general = {
lock_cmd = lockCmd;
before_sleep_cmd = "loginctl lock-session";
# Waking restores the displays the screen-off listener may have cut.
# Waking pokes the compositor in case firmware leaves displays dark.
after_sleep_cmd = "${hyprctl} dispatch dpms on";
};
@@ -56,12 +51,6 @@ in
timeout = cfg.lockTimeout;
on-timeout = "loginctl lock-session";
}
# Power the displays off a little later, restoring them on any activity.
{
timeout = cfg.screenOffTimeout;
on-timeout = "${hyprctl} dispatch dpms off";
on-resume = "${hyprctl} dispatch dpms on";
}
];
};
};