diff --git a/modules/desktop/hyprland/home.nix b/modules/desktop/hyprland/home.nix index ea02c0d..e99c311 100644 --- a/modules/desktop/hyprland/home.nix +++ b/modules/desktop/hyprland/home.nix @@ -3,6 +3,12 @@ let hyprlandConf = '' monitor=,preferred,auto,auto + + # trigger when the switch is turning off + bindl = , switch:off:Lid Switch,exec,hyprctl keyword monitor "eDP-1, 1920x1080, 0x0, 1" + # trigger when the switch is turning on + bindl = , switch:on:Lid Switch,exec,hyprctl keyword monitor "eDP-1, disable" + $mainMod=SUPER general {