home/hyprland: don't include clamshell script if no laptopMonitors exist

This commit is contained in:
Aly Raffauf 2024-07-15 07:53:04 -04:00
parent 744dcf70fa
commit 98aaa97429

View file

@ -177,9 +177,11 @@ in {
monitor = ,preferred,auto,auto
${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
${