Adjust lid script so that swaylock isn't called on reload

This commit is contained in:
Evie Litherland-Smith 2023-06-27 17:37:12 +01:00
parent 4154f8aada
commit b21a65c241

View file

@ -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)$