mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2025-10-04 19:45:40 +00:00
feat: add hypridle
This commit is contained in:
parent
45a49b1529
commit
e4f3540862
2 changed files with 18 additions and 0 deletions
17
home/toast/programs/hypridle.nix
Normal file
17
home/toast/programs/hypridle.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
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";
|
||||
}];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue