feat: add hypridle

This commit is contained in:
lightly-toasted 2025-08-12 12:40:37 +09:00
parent 45a49b1529
commit e4f3540862
2 changed files with 18 additions and 0 deletions

View file

@ -21,6 +21,7 @@
./programs/dunst.nix
./programs/keepassxc.nix
./programs/mouse-actions
./programs/hypridle.nix
];
home = {

View 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";
}];
};
};
}