Add hypridle

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-07-30 10:59:07 +01:00
parent ece2150e10
commit ab8feea39c
4 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
{ user, home }:
{ ... }:
{
home-manager.users.${user}.services.hypridle = {
enable = true;
settings = {
listener = [
{
timeout = 60;
on-timeout = "brightnessctl -s set 10%";
on-resume = "brightnessctl -r";
}
{
timeout = 300;
on-timeout = "hyprctl dispatch dpms off";
on-resume = "hyprctl dispatch dpms on";
}
];
};
};
}