mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 07:13:55 -05:00
home/hyprland: don't include clamshell script if no laptopMonitors exist
This commit is contained in:
parent
744dcf70fa
commit
98aaa97429
|
@ -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
|
||||
${
|
||||
|
|
Loading…
Reference in a new issue