From c467c4293ef4ecdf8dc0c7d3a6e8e74ea622e39f Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Thu, 29 Jan 2026 14:35:37 +0100 Subject: [PATCH] feat: move to waylock, hyprlock is bugged. --- modules/linux/home-manager/hyprland.nix | 8 ++++---- modules/linux/home-manager/wayland.nix | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/modules/linux/home-manager/hyprland.nix b/modules/linux/home-manager/hyprland.nix index 8933472..2bd7878 100644 --- a/modules/linux/home-manager/hyprland.nix +++ b/modules/linux/home-manager/hyprland.nix @@ -85,7 +85,7 @@ in { enable = true; settings = { general = { - lock_cmd = "pidof hyprlock || hyprlock"; # avoid starting multiple hyprlock instances. + lock_cmd = "pidof waylock || waylock"; # avoid starting multiple waylock instances. before_sleep_cmd = "loginctl lock-session"; # lock before suspend. after_sleep_cmd = "hyprctl dispatch dpms on"; # to avoid having to press a key twice to turn on the display. ignore_dbus_inhibit = 1; @@ -95,7 +95,7 @@ in { listener = [ { timeout = 10; # 10 sec - on-timeout = "pidof hyprlock && hyprctl dispatch dpms off"; # Turn off screen if hyprlock is running + on-timeout = "pidof waylock && hyprctl dispatch dpms off"; # Turn off screen if waylock is running on-resume = "hyprctl dispatch dpms on"; # Turn on screen when activiy is detected after timeout has fired } { @@ -104,7 +104,7 @@ in { } { timeout = 310; # 5min and 10 sec - on-timeout = "hyprctl dispatch dpms off"; # Turn off screen if hyprlock is running + on-timeout = "hyprctl dispatch dpms off"; # Turn off screen if waylock is running on-resume = "hyprctl dispatch dpms on"; # Turn on screen when activiy is detected after timeout has fired } ]; @@ -214,7 +214,7 @@ in { "$mod, F, fullscreen" - "$mod SHIFT, L, exec, hyprlock" + "$mod SHIFT, L, exec, waylock" "$mod, B, exec, zen-beta" "$mod SHIFT, B, exec, librewolf" diff --git a/modules/linux/home-manager/wayland.nix b/modules/linux/home-manager/wayland.nix index d55f0f1..7449a34 100644 --- a/modules/linux/home-manager/wayland.nix +++ b/modules/linux/home-manager/wayland.nix @@ -16,6 +16,7 @@ '') cliphist wl-clipboard + waylock ]; # Enable and setup tofi @@ -60,7 +61,7 @@ # Enable hyprlock programs.hyprlock = { - enable = true; + enable = false; package = inputs.hyprlock.packages.${pkgs.stdenv.hostPlatform.system}.hyprlock; settings = { image = {