prevent starting multiple instances of hyprlock

This commit is contained in:
Adithya 2024-05-12 22:05:25 +05:30
parent 3cdba5762a
commit 31c603f368
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C

View file

@ -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";