From b21a65c241e407e0141dfbe5b1c07a91faf67ae1 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Tue, 27 Jun 2023 17:37:12 +0100 Subject: [PATCH] Adjust lid script so that swaylock isn't called on reload --- users/elitherl/Ronin.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/elitherl/Ronin.nix b/users/elitherl/Ronin.nix index 99a7f68d..939b59c6 100644 --- a/users/elitherl/Ronin.nix +++ b/users/elitherl/Ronin.nix @@ -3,7 +3,6 @@ grep closed /proc/acpi/button/lid/LID0/state &&\ hyprctl dispatch dpms off eDP-1 ||\ hyprctl dispatch dpms on eDP-1 - grep closed /proc/acpi/button/lid/LID0/state && hyprctl dispatch exec swaylock ''; in { imports = [./default.nix]; @@ -23,6 +22,7 @@ in { monitor = DP-3,1920x1200,1920x0,1.0 monitor = DP-4,1920x1080,3840x0,1.0,transform,1 bindl=,switch:Lid Switch,exec,check-laptop-lid-state + bindl=,switch:Lid Switch,exec,swaylock exec = ${laptop-state}/bin/check-laptop-lid-state windowrule = workspace 3 silent, ^(teams-for-linux)$