replaced hyprland config with lua
This commit is contained in:
34
hypr/hyprland/monitors.lua
Normal file
34
hypr/hyprland/monitors.lua
Normal file
@@ -0,0 +1,34 @@
|
||||
--██▄ ▄██ ▄████▄ ███ ██ ██ ██████ ▄████▄ █████▄ ▄█████
|
||||
--██ ▀▀ ██ ██ ██ ██ ▀▄██ ██ ██ ██ ██ ██▄▄██▄ ▀▀▀▄▄▄
|
||||
--██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ ██ ██ █████▀
|
||||
|
||||
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 })
|
||||
Reference in New Issue
Block a user