Stop a docked laptop's internal scale jumping back to 2 by itself
Symptom
On a docked laptop the internal panel's scale keeps jumping back to 2 every couple of seconds, all by itself, no matter what you set in the display panel or in monitors.lua. Everything on the laptop screen is comically huge. Some users see the same reset only after the screensaver/lock screen runs.
Cause
omarchy-hyprland-monitor-clamshell runs a 2-second sync_internal_scale poll whenever a laptop has an external monitor active. It reads the wanted scale out of monitors.lua with a *line-anchored* regex that only matches when hl.monitor({ and output = "eDP-1" are on the same line. GUI tools like nwg-displays write each monitor as a multi-line block, so the grep finds nothing, every fallback misses, and read_monitor_scale returns its hardcoded default of 2, which the poll then re-applies twice a second.
Fix
Rewrite each monitor rule in ~/.config/hypr/monitors.lua as a single line so the poll can read it:
-- multi-line block written by nwg-displays: NOT matched
-- hl.monitor({
-- output = "eDP-1",
-- mode = "1920x1080@60.0",
-- position = "1536x0",
-- scale = 1.25
-- })
-- single line: matched by the clamshell poll
hl.monitor({ output = "eDP-1", mode = "1920x1080@60.0", position = "1536x0", scale = 1.25 })
hl.monitor({ output = "HDMI-A-1", mode = "preferred", position = "0x0", scale = 1 })
Then hyprctl reload. If you want to confirm the poll is the culprit, watch it fight you:
watch -n1 "hyprctl monitors -j | jq -c '.[] | {name, scale}'"
Verify
The scale reported by hyprctl monitors -j | jq -c '.[] | {name,scale}' stays constant for a full minute while docked.