2024-03-07 03:54:42 -05:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
2024-04-22 16:16:03 -04:00
|
|
|
config,
|
2024-03-07 03:54:42 -05:00
|
|
|
...
|
|
|
|
}: {
|
|
|
|
services.hypridle = {
|
|
|
|
enable = true;
|
2024-05-26 16:48:37 -04:00
|
|
|
settings = {
|
|
|
|
general = {
|
|
|
|
ignore_dbus_inhibit = false;
|
|
|
|
lock_cmd = lib.getExe config.programs.hyprlock.package;
|
|
|
|
before_sleep_cmd = "${pkgs.systemd}/bin/loginctl lock-session";
|
|
|
|
};
|
|
|
|
listener = [
|
|
|
|
{
|
|
|
|
timeout = 400;
|
|
|
|
on-timeout = "${lib.getExe config.programs.hyprlock.package}";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
timeout = 460;
|
2024-10-14 07:19:21 -04:00
|
|
|
on-timeout = "hyprctl dispatch dpms off";
|
2024-05-26 16:48:37 -04:00
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2024-03-07 03:54:42 -05:00
|
|
|
};
|
|
|
|
}
|