refactor(hyprlua): make monitors.lua a generic single-screen default

Replace the machine-specific DP-1/DP-3/HDMI-A-1 layout with a wildcard
catch-all rule (preferred mode, auto position, auto scale) that brings up
any connected output. Per-machine layout stays the job of monitor-manager,
which overwrites this file.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
main
Amir Alexander Abdelbaki 2026-06-26 15:59:29 +02:00
parent a09d509da8
commit 32420fd2c8
1 changed files with 13 additions and 22 deletions

View File

@ -1,26 +1,17 @@
-- generated by monitor-manager -- do not edit by hand -- Default monitor configuration.
--
-- This is a functional fallback only: a single catch-all rule that brings up
-- every connected output at its preferred mode, auto-positioned with an
-- automatic scale. It is enough to get a usable screen on any machine.
--
-- Per-machine layout (resolution, position, scale, rotation, mirroring) is
-- managed by scripts/monitor-manager, which overwrites this file. Don't hand-
-- edit it for a specific setup -- run the manager instead.
hl.monitor({ hl.monitor({
output = "DP-1", output = "", -- empty output = wildcard, matches every monitor
mode = "1920x1080@60", mode = "preferred", -- use each monitor's preferred resolution/refresh
position = "3816x0", position = "auto", -- let Hyprland place outputs side by side
scale = 0.75, scale = "auto", -- pick a sensible scale per monitor
transform = 1,
})
hl.monitor({
output = "DP-3",
mode = "1280x1024@76",
position = "0x0",
scale = 1.0,
transform = 0,
})
hl.monitor({
output = "HDMI-A-1",
mode = "3840x2160@60",
position = "1280x0",
scale = 1.5,
transform = 0,
}) })
hl.config({ hl.config({