hypr eco systems

This commit is contained in:
cnst
2024-07-15 19:40:02 +02:00
parent 7052dc1c10
commit 46aaf625b2
42 changed files with 118 additions and 2 deletions

View File

@@ -0,0 +1,27 @@
{
services.hypridle = {
enable = true;
importantPrefixes = [
"$lock_cmd = pidof hyprlock || hyprlock"
"$suspend_cmd = pidof steam || systemctl suspend || loginctl suspend"
];
settings = {
general = {
lock_cmd = "$lock_cmd";
before_sleep_cmd = "$lock_cmd";
};
listener = [
{
timeout = 900; # 15mins
on-timeout = "$lock_cmd";
}
{
timeout = 1200; # 20mins
on-timeout = "hyprctl dispatch dpms off";
on-resume = "hyprctl dispatch dpms on";
}
];
};
};
}