mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-03-10 19:18:17 +01:00
28 lines
546 B
Nix
28 lines
546 B
Nix
|
{ ... }:
|
||
|
|
||
|
{
|
||
|
services = {
|
||
|
hypridle = {
|
||
|
enable = true;
|
||
|
settings = {
|
||
|
general = {
|
||
|
after_sleep_cmd = "hyprctl dispatch dpms on";
|
||
|
ignore_dbus_inhibit = false;
|
||
|
lock_cmd = "hyprlock";
|
||
|
};
|
||
|
listener = [
|
||
|
{
|
||
|
timeout = 900;
|
||
|
on-timeout = "hyprlock";
|
||
|
}
|
||
|
{
|
||
|
timeout = 1200;
|
||
|
on-timeout = "hyprctl dispatch dpms off";
|
||
|
on-resume = "hyprctl dispatch dpms on";
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|