Skip to content

Commit dbd716b

Browse files
committed
hypridle: refactor to avoid duplicate hyprlocks
See if changing the listener to just use the lock_cmd helps
1 parent 1850597 commit dbd716b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/home/services/hypridle/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ in
2424
after_sleep_cmd = "${getExe' config.wayland.windowManager.hyprland.package "hyprctl"} dispatch dpms on";
2525
before_sleep_cmd = "loginctl lock-session";
2626
ignore_dbus_inhibit = false;
27-
lock_cmd = "pgrep hyprlock || ${getExe config.programs.hyprlock.package}";
27+
lock_cmd = "pidof hyprlock || ${getExe config.programs.hyprlock.package} --grace 300";
2828
};
2929

3030
listener = [
3131
{
3232
timeout = 300;
33-
on-timeout = "${getExe config.programs.hyprlock.package} --grace 300";
33+
on-timeout = "loginctl lock-session";
3434
}
3535
{
3636
timeout = 600;

0 commit comments

Comments
 (0)