Skip to content

Add drag-to-arrange monitor layout in Display - #7152

Open
sharifli4 wants to merge 1 commit into
omacom:quattrofrom
sharifli4:feat/monitor-layout-canvas
Open

sharifli4 wants to merge 1 commit into
omacom:quattrofrom
sharifli4:feat/monitor-layout-canvas

Conversation

@sharifli4

Copy link
Copy Markdown

Summary

  • Replace the Display panel's monitor list with a spatial canvas: drag numbered rectangles to snap left/right/above/below, then apply live via hyprctl and persist a managed block in ~/.config/hypr/monitors.lua.
  • Add omarchy-hyprland-monitor-layout (omarchy hyprland monitor layout) for state, apply, and place, with overlap/island validation and per-write backups.
  • Snap from the drop position (not travel distance) so a display dragged under a wider neighbor stays on that bottom edge.

Test plan

  • test/shell.d/hyprland-monitor-layout-test.sh (state, validate, lua patch, CLI dry-run/write, snap math)
  • ./test/cli (command metadata / routing)
  • Open Super+Ctrl+D with laptop + external: drag a display under/beside the other and confirm it stays
  • Confirm ~/.config/hypr/monitors.lua gains a single -- omarchy-layout-managed block and GDK_SCALE / catch-all output = "" stay untouched
  • Laptop-only: canvas shows one display; apply is a no-op
  • LEFT/RIGHT/ABOVE/BELOW chips and INT/MIRROR toggles still work

Made with Cursor

Let Super+Ctrl+D snap displays to adjacent edges, apply the layout live, and persist a managed block in monitors.lua.

Co-authored-by: Cursor <cursoragent@cursor.com>
Copilot AI balanced review requested due to automatic review settings August 16, 2026 16:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@sharifli4

Copy link
Copy Markdown
Author

I kept having to rearrange my laptop and external monitor, and doing that by hand was a pain. I wanted a GUI for it
image

@sharifli4

Copy link
Copy Markdown
Author

Hey @dhh , could you give feedback, please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants