nix/home/hypridle/default.nix

26 lines
526 B
Nix
Raw Normal View History

2024-08-09 15:56:11 +02:00
{ ... }:
{
2024-08-09 16:06:12 +02:00
services.hypridle = {
2024-08-09 15:56:11 +02:00
enable = true;
2024-08-09 18:27:47 +02:00
settings = {
2024-08-10 13:50:10 +02:00
general = [
{
ignore_dbus_inhibit = false;
}
];
listener = [
{
2024-08-11 08:45:09 +02:00
timeout = 600;
2024-08-10 13:50:10 +02:00
on-timeout = "hyprctl dispatch dpms off";
on-resume = "hyprctl dispatch dpms on";
}
2024-08-10 20:49:27 +02:00
{
2024-08-11 08:45:09 +02:00
timeout = 1200;
2024-08-10 20:49:27 +02:00
on-timeout = "systemctl suspend";
on-resume = "hyprctl dispatch dpms on";
}
2024-08-10 13:50:10 +02:00
];
};
2024-08-09 18:27:47 +02:00
};
2024-08-09 15:56:11 +02:00
}