prevent starting multiple instances of hyprlock
This commit is contained in:
parent
3cdba5762a
commit
31c603f368
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ in
|
|||
enable = true;
|
||||
settings = {
|
||||
general = {
|
||||
lock_cmd = "${pkgs.hyprlock}/bin/hyprlock";
|
||||
lock_cmd = "${pkgs.procps}/bin/pidof hyprlock || ${pkgs.hyprlock}/bin/hyprlock";
|
||||
unlock_cmd = "${pkgs.procps}/bin/pkill -USR1 hyprlock";
|
||||
before_sleep_cmd = lock-session;
|
||||
after_sleep_cmd = "${hyprctl} dispatch dpms on";
|
||||
|
|
Loading…
Reference in a new issue