Repository navigation
Show one display at a time in the display panel, with a layout map - #17159
Merged
Merged
Conversation
The display panel gets a Resolution row beneath Scale, and both rows now show one line per enabled display instead of acting on the focused one. Resolutions come from each display's own advertised modes: its native size and the smaller modes of the same shape, smallest to largest. omarchy-hyprland-monitor-resolution sets a display's mode, and it and omarchy-hyprland-monitor-scaling take --monitor NAME. Both save through omarchy-hyprland-monitor-persist, which now writes the mode alongside the scale, so a chosen resolution survives reloads and later scale changes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Each display gets a segment of its own, as each agent does in the agents panel: its name and an on/off switch, then its brightness, scale and resolution. This replaces the display list at the bottom. Brightness is read and set per display. Text size stays one row above the segments, since the shell font, GTK and the terminals each take a single size. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The display panel shows one display at a time, under a tab per display, and opens on the focused one. Its rows sit under the tabs: an on/off switch, brightness, scale and resolution. Text size sits above the tabs, since it applies to every display. A layout map at the bottom draws the displays where they sit. Drag one against another's side to move it there, snapping to that display's start, center or end. h/l moves the open display to the left or right of the others. omarchy-hyprland-monitor-layout applies every position in one eval, and omarchy-hyprland-monitor-persist now saves a position along with the scale and mode. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The hero names the display the panel shows, with a button per display on its right to pick another. It opens on the focused display. That display's brightness, scale and resolution follow the hero, and text size and the layout map come last, since every display shares them. Displays can no longer be turned on and off from the panel. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A scale or resolution change beside other monitors now keeps the monitor's position instead of handing it to Hyprland's auto placement. Every monitor to its right or below it then shifts by however much it grew or shrank, through omarchy-hyprland-monitor-layout --resized, and the positions are saved. A smaller mode no longer leaves a gap beside it, and a larger one no longer overlaps its neighbour. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Rows of pills take the same room above and below as a slider row, and the layout map is as tall as the arrangement inside a slider-like row, so every section keeps the same rhythm. The picker's display icons no longer sit in boxes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
omarchy-hyprland-monitor-persist writes its arguments straight into the Lua that Hyprland loads on every change. It now refuses anything that isn't a plain connector, scale, mode or position, and skips GDK_SCALE when the lowest scale can't be read, instead of writing a broken rule or an empty assignment that leaves the whole config unloadable. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A slider's row is as tall as its knob, with the thin track centered in it. Rows of pills and the layout map now take the room around that track rather than half a control gap, and the spacer at the end of the panel goes, so every gap above and below what's drawn is the same. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Bringing a row into view added a margin below it even when it was the last row and the panel already fit, which scrolled the content past its end and cut the hero off at the top. The scroll now stops at either end. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The map no longer sits in a cursor box that lights on hover. When the keyboard is on it, the shown display's outline thickens instead. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Each section label has an icon beside it: a sun for brightness, letter case for text size, expanding arrows for scale, full-screen corners for resolution and two monitors for layout. The hero's display picker is one segmented control, a frame with a cell per display and the shown one filled, instead of separate buttons. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This reverts commit 542cfda: the section icons and the segmented display picker didn't land well, so the panel goes back to plain labels and separate picker icons. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Shifting the monitors to the right of and below a resized one at once could push two of them onto each other, as with two screens stacked beside a tall one. A shifted monitor that overlaps another now goes back where it was whenever that spot is free, so the layout keeps a gap rather than an overlap. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The panel skipped a poll whose display list matched the last one, and the list carried brightness, so a level changed elsewhere and changed back could leave the panel showing a stale one for good. Brightness now comes from every poll, and only the rest of the list is compared before rebuilding the picker and layout. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
[Medium impact] The PR appears safe to merge; the outstanding scaling-history issue is fixed. SummaryThis PR adds per-display controls, a layout map, and settings saved by physical monitor.
Reviews (11) · Last reviewed commit: "Stop the monitors/ migration when the sc..." · Reviewed by Greptile |
This comment has been minimized.
This comment has been minimized.
A shifted monitor that overlapped nothing never went back, so it could block the return of two that overlapped each other, and the overlap was saved. While any overlap remains, any shifted monitor whose old spot is free now goes back, the overlapping ones first. If overlaps still remain, the monitors keep their old places when those are clear. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Dropping the map's highlight box also dropped its hover handler, so after using a scale or resolution row, h/l kept walking that row's pills instead of moving the shown display. The pointer on the map takes the shared cursor again, without drawing a box. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The display panel's scale, resolution and layout choices were written into ~/.config/hypr/monitors.lua as rules naming the connector. A dock renames its connectors between plugs, so a rule for DP-1 handed one monitor's mode and position to whatever turned up on that port next, and editing the user's Lua in place could leave the whole config unloadable. omarchy-hyprland-monitor-persist now saves one line per monitor in ~/.local/state/omarchy/monitor-settings, keyed by the identity monitor-workspaces gives it: make, model and serial. The new default/hypr/monitor-settings.lua, loaded from toggles.lua after hypr/monitors.lua, applies them while the config loads and again when a monitor arrives, skipping one already running as saved. It also sets GDK_SCALE from the lowest scale, so monitors.lua is never written, and --keep-gdk goes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The saved settings move from ~/.local/state/omarchy/monitor-settings to ~/.local/state/omarchy/monitors/settings, a directory of their own. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ors/ Each monitor's workspace blocks move to monitors/workspaces (with monitors/workspaces-merged beside them) and the scaling log to monitors/scaling, next to monitors/settings. A migration moves the existing files over. Until it runs, monitor-workspaces.lua still reads the old blocks, so a config reload first doesn't cost a monitor its workspaces. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A layout moves every monitor in one step, then saves them one at a time, and each save replayed every monitor's saved settings. One not yet saved was pulled back to its old position, then forward again on its own save. A save now replays only its own monitor, which already runs as saved, so it just brings GDK_SCALE up to date. The monitors/ migration takes a fresh timestamp: quattro gained an unrelated migration under the same one. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The panel no longer turns displays on and off, so toggleDisplay and its test go. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The monitor panel now sets each monitor's scale, resolution and arrangement, so the menu no longer opens monitors.lua for them. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Clamshell recovery took the internal panel's scale and position from monitors.lua, but choices made in the display panel now live in the monitor settings and win over that file. A numeric scale there corrected a panel-chosen one back on every idle-wake, and the panel came back at its old mode and position. Clamshell now reads the saved mode, position and scale first. The connector-to-monitor lookup both need moves into a hidden omarchy-hyprland-monitor-identity. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Omarchy's default monitor rule and GDK_SCALE move into default/hypr/monitors.lua, so the shipped hypr/monitors.lua is only commented examples for agents and power users: rotation, modes the panel doesn't offer, keeping a monitor off, matching by description, 10-bit color, VRR, and overriding the default scale or GDK_SCALE. Existing copies keep working: they load after the defaults. The Omarchy agent skill sets scale, resolution and position through the monitor commands, and the manual follows. Co-Authored-By: Claude Opus 5.5 <[email protected]>
toggles.lua now loads the saved monitor settings, which listen for monitors arriving, so the fake hl the test loads it with needs hl.on. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The copy hid every failure behind || true, so a full disk could replace the log with a partial one, delete the original and still mark the migration done. The old log now moves over when there's nothing newer, and otherwise a failed copy stops the migration before anything is replaced or deleted, leaving it pending. Co-Authored-By: Claude Opus 5.5 <[email protected]>
2 tasks
omarchybot
added a commit
to ekollof/omarchy
that referenced
this pull request
Nov 1, 2026
The display panel was rewritten on quattro (omacom#17159, omacom#17170, omacom#17175) with a taller cap and its full-card ScrollView kept, so it keeps scrollOverflow: false beside the new contentHeight. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 1, 2026
omarchybot
added a commit
to fbalazsy/omarchy
that referenced
this pull request
Nov 2, 2026
quattro now reads the panel's mode from the display panel's saved settings (omacom#17159) and says disabled = false when recovering an unplugged panel (omacom#16310). read_monitor_mode takes the saved mode first, then the internal rule, then the catch-all, and enable_internal_output keeps quattro's disabled = false. The mode tests are rewritten on quattro's expect_sync helper, since the fixtures they used were removed in omacom#16756, with one more for the display panel's mode winning over the rule's. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The display panel shows one display at a time, with its own brightness, scale and resolution, and gains a layout map for arranging several. Replaces #17147, whose commits are included here.
One display at a time
omarchy-monitor-statereads every enabled display's level in parallel, since a DDC read takes a moment per monitor. Text size stays one setting: the shell font, GTK and the terminals each take a single size.Resolution and scale per display
omarchy-hyprland-monitor-resolution [--monitor NAME] [WIDTHxHEIGHT[@RATE]]sets a mode, refusing anything the display doesn't advertise. Without a rate it takes the fastest one. It keeps the current scale, rounded to one the new mode accepts.omarchy-hyprland-monitor-scalingtakes--monitor NAME, and the panel drives the shown display's scale through it.Layout
omarchy-hyprland-monitor-layout NAME=XxY…applies every position in one eval and saves them. Its--resizedmode keeps neighbours touching when a scale or resolution change resizes a display, and those commands keep the display's place instead of handing it to auto placement.Persistence, by the physical monitor
~/.local/state/omarchy/monitors/settings, one tab-separated line per monitor: mode, position, scale and the monitor's identity (make, model and serial, asmonitor-workspacesnames it). A dock renames connectors between plugs, so settings keyed byDP-1would land on whatever monitor turned up on that port.omarchy-hyprland-monitor-persistwrites that file, and refuses any value out of place. It moves out of the scaling command, which used to editmonitors.luawith awk.default/hypr/monitor-settings.lua, loaded fromtoggles.luaafterhypr/monitors.lua, applies the saved settings while the config loads and again when a monitor arrives, skipping one already running as saved. It setsGDK_SCALEfrom the lowest scale too, somonitors.luais never written. Rules written there by earlier versions keep working until a monitor's settings are changed in the panel.monitors/settings,monitors/workspaces(andmonitors/workspaces-merged), formerlymonitor-workspaces, andmonitors/scaling, formerlymonitor-scaling.log. A migration moves the existing files, andmonitor-workspaces.luareads the old blocks until it runs.monitors.lua is for the extras
GDK_SCALE2 move intodefault/hypr/monitors.lua. The shippedhypr/monitors.luais commented examples for agents and power users: rotation, modes the panel doesn't offer, keeping a monitor off, matching by description, 10-bit color, VRR, and overriding the default scale orGDK_SCALE. Existing copies keep working, loading after the defaults.monitors.lua, so a numeric scale there no longer corrects a panel-chosen one back on idle-wake. The connector-to-monitor lookup moves into a hiddenomarchy-hyprland-monitor-identity.Review
A Codex review found two bugs, both fixed here with tests: a resize could push two neighbours onto each other, and a brightness change made elsewhere could leave the panel showing a stale level.
Known limits
Verified in the running panel on a laptop beside a 6K display, including layout moves, resolution changes and a simulated four-display arrangement. Tests cover resolution options, the scaling, resolution and layout commands, the layout math, per-display brightness and display naming.
🤖 Generated with Claude Code