38 lines
2.3 KiB
Lua
38 lines
2.3 KiB
Lua
-- lw host layer — loaded by gui/.config/hypr/hyprland.lua via check_require("host").
|
|
-- Ported from lw's hyprlang {monitors,host}.conf (retired 2026-11-09; in history at d851213).
|
|
-- No discrete GPU on this laptop — no nvidia extras.
|
|
|
|
-- ── Monitors ─────────────────────────────────────────────────────────────────
|
|
local mainScreen = "eDP-1"
|
|
local leftScreen = "DP-2"
|
|
local rightScreen = "HDMI-A-1"
|
|
|
|
hl.monitor({ output = mainScreen, mode = "1366x768@60.14", position = "0x0", scale = 1 })
|
|
hl.monitor({ output = leftScreen, mode = "1920x1080@60", position = "-1920x0", scale = 1 })
|
|
hl.monitor({ output = rightScreen, mode = "1920x1080@60", position = "1366x0", scale = 1 })
|
|
|
|
-- Alternatives carried over verbatim from the retired monitors.conf (hyprlang syntax —
|
|
-- translate to an hl.monitor() call when one is needed):
|
|
-- monitor=HDMI-A-1,1920x1080@60,-1366x0,1 # hdmi on left
|
|
-- monitor=HDMI-A-1,1920x1080@60,0x-768,1 # hdmi on top
|
|
-- monitor=DP-2,640x480@59.94Hz,0x0,1 # vga
|
|
-- monitor = HDMI-A-1, 1366x768@60.00Hz, auto , 1, mirror, eDP-1 #mirror lapscreen
|
|
-- monitor = DP-2, 1920x1080@60.00Hz, auto , 1, mirror, eDP-1 #mirror lapscreen jag3
|
|
-- monitor = eDP-1, 1920x1080@60.00Hz, auto , 1, mirror, HDMI-A-1 #main hdmi, lapscreen mirrors
|
|
-- monitor = eDP-1, 1920x1080@60.00Hz, auto , 1, mirror, DP-2 #main VGA, lapscreen mirrors
|
|
-- monitor = , preferred, auto, 1, mirror, DP-2 # dmz projector
|
|
-- monitor = eDP-1, 1920x1080@60, auto , 1, mirror, DP-2 #mirror vga test
|
|
|
|
-- ── Workspace pins (1-10 main, 11-20 right, 21-30 left) ──────────────────────
|
|
for i = 1, 10 do
|
|
hl.workspace_rule({ workspace = tostring(i), monitor = mainScreen, default = (i == 1) })
|
|
hl.workspace_rule({ workspace = tostring(i + 10), monitor = rightScreen, default = (i == 1) })
|
|
hl.workspace_rule({ workspace = tostring(i + 20), monitor = leftScreen, default = (i == 1) })
|
|
end
|
|
|
|
-- ── Startup (was host.conf) ──────────────────────────────────────────────────
|
|
hl.on("hyprland.start", function()
|
|
-- keyboard remaps (lw is the only xremap host)
|
|
hl.exec_cmd("xremap ~/.config/xremap/config.yml")
|
|
end)
|