--██▄ ▄██ ▄████▄ ███ ██ ██ ██████ ▄████▄ █████▄ ▄█████ --██ ▀▀ ██ ██ ██ ██ ▀▄██ ██ ██ ██ ██ ██▄▄██▄ ▀▀▀▄▄▄ --██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ ██ ██ █████▀ hl.monitor({ output = "", mode = "preferred", position = "auto", scale = "1", }) -- Default monitor config for full resolution on external monitor hl.monitor({ output = "DP-5", mode = "7680x2160@120", position = "auto", scale = 1, }) hl.monitor({ output = "DP-6", mode = "7680x2160@120", position = "auto", scale = 1, }) -- Lid switch bindings -- Modern Lua Lid Switch triggers running your script --hl.bind("switch:on:Lid Switch", hl.dsp.exec_cmd("~/.config/hypr/scripts/monitor_setup2.sh"), { locked = true }) --hl.bind("switch:off:Lid Switch", hl.dsp.exec_cmd("~/.config/hypr/scripts/monitor_setup2.sh"), { locked = true }) -- Native Lua Lid Switch bindings hl.bind("switch:on:Lid Switch", hl.dsp.exec_cmd("hyprctl eval 'hl.monitor({ output = \"eDP-1\", disabled = true })'"), { locked = true }) hl.bind("switch:off:Lid Switch", hl.dsp.exec_cmd("hyprctl eval 'hl.monitor({ output = \"eDP-1\", mode = \"preferred\", position = \"auto\", scale = 1 })'"), { locked = true })