Unify idle behavior

This commit is contained in:
SebastianStork 2024-05-20 16:11:15 +02:00
parent bf0faf55c0
commit 251c663781
2 changed files with 12 additions and 13 deletions

View file

@ -1,5 +1,6 @@
{
config,
pkgs,
lib,
wrappers,
...
@ -23,10 +24,20 @@
};
listener = [
{
timeout = 300;
on-timeout = "${lib.getExe pkgs.brightnessctl} -s && ${lib.getExe pkgs.brightnessctl} -e set 10%";
on-resume = "${lib.getExe pkgs.brightnessctl} -r";
}
{
timeout = 600;
on-timeout = "loginctl lock-session";
}
{
timeout = 610;
on-timeout = "hyprctl dispatch dpms off";
on-resume = "hyprctl dispatch dpms on";
}
];
};
};