Switch from swayidle to hypridle

This commit is contained in:
Kiana Sheibani 2024-05-14 01:39:50 -04:00
parent e304f05642
commit 7d446d026a
4 changed files with 47 additions and 35 deletions

View file

@ -21,13 +21,13 @@ in {
services.hypridle.enable = true;
services.hypridle.settings = {
general = {
before_sleep_cmd = "swaylock -f";
before_sleep_cmd = "hyprlock --immediate";
};
listener = [
{
timeout = 120;
on-timeout = "swaylock -f --grace=180";
on-timeout = "hyprlock";
}
{
timeout = 600;