This commit is contained in:
Hadi
2024-08-22 21:02:14 +02:00
parent 28424b82ab
commit d816099985
12 changed files with 180 additions and 107 deletions

View File

@@ -3,19 +3,25 @@
services.hypridle = {
enable = true;
settings = {
general = { ignore_dbus_inhibit = false; };
listener = [{
timeout = 600;
on-timeout = pkgs.hyprlock + "/bin/hyprlock";
}
# {
# timeout = 660;
# on-timeout = "systemctl suspend";
# on-resume = pkgs.libnotify
# + "/bin/notify-send 'Welcome back to your desktop!'";
# }
];
general = {
ignore_dbus_inhibit = false;
lock_cmd = "pidof hyprlock || ${pkgs.hyprlock}/bin/hyprlock";
before_sleep_cmd = "loginctl lock-session";
after_sleep_cmd = "hyprctl dispatch dpms on";
};
listener = [
{
timeout = 600;
on-timeout = "pidof hyprlock || ${pkgs.hyprlock}/bin/hyprlock";
}
{
timeout = 660;
on-timeout = "systemctl suspend";
}
];
};
};
}