hypridle config

This commit is contained in:
2025-06-25 03:09:22 -04:00
parent eb08f3dee0
commit c0dea56d8b

View File

@@ -150,6 +150,30 @@
helvum helvum
]; ];
services.hypridle = {
enable = true;
settings = {
general = {
lock_cmd = "pidof hyprlock || hyprlock";
before_sleep_cmd = "loginctl lock-session";
after_sleep_cmd = "hyprctl dispatch dpms on";
ignore_dbus_inhibit = false;
};
listener = [
{
timeout = 600;
on-timeout = "loginctl lock-session";
}
{
timeout = 900;
on-timeout = "hyprctl dispatch dpms off";
on-resume = "hyprctl dispatch dpms on";
}
];
};
};
services.hyprpolkitagent.enable = true; services.hyprpolkitagent.enable = true;
services.hyprsunset.enable = true; services.hyprsunset.enable = true;