fix: hypridle locking multiple times

This commit is contained in:
Nydragon 2024-09-26 15:03:33 +02:00
parent 9651f73928
commit c639d58b0f
Signed by: nydragon
SSH key fingerprint: SHA256:iQnIC12spf4QjWSbarmkD2No1cLMlu6TWoV7K6cYF5g

View file

@ -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 = [