diff --git a/config/hypr/configs/monitor_and_env.lua b/config/hypr/configs/monitor_and_env.lua index 1f380389..322a54fe 100644 --- a/config/hypr/configs/monitor_and_env.lua +++ b/config/hypr/configs/monitor_and_env.lua @@ -7,6 +7,18 @@ hl.monitor({ scale = 1, }) +-- Lid close: remove laptop panel from layout +hl.bind("switch:on:Lid Switch", function() + -- hl.dispatch(hl.dsp.dpms({ action = "disable", monitor = "eDP-1" })) + hl.monitor({ output = "eDP-1", disabled = true }) +end) + +-- Lid open: restore laptop panel +hl.bind("switch:off:Lid Switch", function() + -- hl.dispatch(hl.dsp.dpms({ action = "enable", monitor = "eDP-1" })) + hl.monitor({ output = "eDP-1", disabled = false }) +end) + -- Env Vars for key, val in pairs({