mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2025-10-04 15:45:39 +00:00
feat: add hypridle
This commit is contained in:
parent
45a49b1529
commit
e4f3540862
2 changed files with 18 additions and 0 deletions
|
@ -21,6 +21,7 @@
|
|||
./programs/dunst.nix
|
||||
./programs/keepassxc.nix
|
||||
./programs/mouse-actions
|
||||
./programs/hypridle.nix
|
||||
];
|
||||
|
||||
home = {
|
||||
|
|
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