diff --git a/homeManagerModules/desktop/hyprland/default.nix b/homeManagerModules/desktop/hyprland/default.nix index b0d19fcc..20c76a8a 100644 --- a/homeManagerModules/desktop/hyprland/default.nix +++ b/homeManagerModules/desktop/hyprland/default.nix @@ -177,9 +177,11 @@ in { monitor = ,preferred,auto,auto - # Turn off the internal display when lid is closed. - bindl = ,switch:on:Lid Switch,exec,${clamshell} on - bindl = ,switch:off:Lid Switch,exec,${clamshell} off + ${lib.optionalString (cfg.desktop.hyprland.laptopMonitors != []) '' + # Turn off the internal display when lid is closed. + bindl = ,switch:on:Lid Switch,exec,${clamshell} on + bindl = ,switch:off:Lid Switch,exec,${clamshell} off + ''} # Enable virtual keyboard in tablet mode ${