nix-config/home/toast/modules/hypridle.nix

17 lines
349 B
Nix

{
services.hypridle = {
enable = true;
settings = {
general = {
after_sleep_cmd = "hyprctl dispatch dpms on";
ignore_dbus_inhibit = false;
};
listener = [{
timeout = 5 * 60;
on-timeout = "hyprctl dispatch dpms off";
on-resume = "hyprctl dispatch dpms on";
}];
};
};
}