diff --git a/configs/nixos/modules/desktop/session/hyprland/hypridle.nix b/configs/nixos/modules/desktop/session/hyprland/hypridle.nix index 652e9b0..a77e501 100644 --- a/configs/nixos/modules/desktop/session/hyprland/hypridle.nix +++ b/configs/nixos/modules/desktop/session/hyprland/hypridle.nix @@ -7,14 +7,15 @@ # hypridle: idle-triggered locking and display power management. let cfg = config.modules.desktop.session.hyprland.hypridle; # NOLINT(let_order) + + # The guard drops the call when a locker is already up, so no idle trigger + # stacks a second hyprlock over the first. lockCmd = "${pkgs.procps}/bin/pidof hyprlock || ${hyprlock}"; user = config.user.name; hyprctl = "${config.programs.hyprland.package}/bin/hyprctl"; hyprlock = "${config.home-manager.users.${user}.programs.hyprlock.package}/bin/hyprlock"; - # The guard drops the call when a locker is already up, so no idle trigger - # stacks a second hyprlock over the first. in { options.modules.desktop.session.hyprland.hypridle = {