set auto lock time to 5 minutes and fix optional autosuspend

This commit is contained in:
2025-02-26 17:07:27 +01:00
parent e3f1eedbfc
commit 6a72c4bdf3

View File

@ -15,18 +15,18 @@
general.before_sleep_cmd = "loginctl lock-session"; general.before_sleep_cmd = "loginctl lock-session";
listener = [ listener = [
{ {
timeout = 150; timeout = 300;
on-timeout = "brightnessctl -s set 0"; on-timeout = "brightnessctl -s set 0";
on-resume = "brightnessctl -r"; on-resume = "brightnessctl -r";
} }
{ {
timeout = 150; timeout = 300;
on-timeout = "loginctl lock-session"; on-timeout = "loginctl lock-session";
} }
] ++ lib.lists.optional config.mods.hyprland.autoSuspend [{ ] ++ lib.lists.optional config.mods.hyprland.autoSuspend {
timeout = 600; timeout = 600;
on-timeout = "systemctl suspend"; on-timeout = "systemctl suspend";
}]; };
}; };
}; };
}; };