mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-05 04:12:10 +02:00
Update
This commit is contained in:
@@ -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";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user