diff --git a/home/sway/swayidle.nix b/home/sway/swayidle.nix index d7010aa..807d43a 100644 --- a/home/sway/swayidle.nix +++ b/home/sway/swayidle.nix @@ -7,7 +7,7 @@ lib.mkIf config.services.swayidle.enable { services.swayidle = let - locker = "${pkgs.hyprlock}/bin/hyprlock"; + locker = "pidof hyprlock || ${pkgs.hyprlock}/bin/hyprlock"; in { events = [