Repository navigation
Update monitor configuration defaults and docs to use relative positioning (auto) to prevent cursor trapping #8213
syskey8
started this conversation in
Suggestions
Replies: 1 comment
|
I've gone ahead and submitted a Pull Request (#8362) that completely fixes this issue by updating the default templates and documentation to use The underlying problem was that the official documentation taught absolute coordinates (e.g. By switching the defaults to use relative positioning, Hyprland will always mathematically glue the monitors together flawlessly regardless of the user's fractional scale. Looking forward to any feedback on the PR! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Suggestion: Use relative positioning (
auto) instead of absolute pixel coordinates for multi-monitor setupsI wanted to suggest a change to how multi-monitor configurations are handled in the default Omarchy templates and official documentation, specifically regarding the
positionvariable in~/.config/hypr/monitors.lua.Currently, the default examples and guides teach users to use absolute pixel coordinates (e.g.,
position = "1920x0"orposition = "0x1080"). While this works perfectly at a 1.0 scale, it completely breaks the desktop if a user decides to use fractional scaling.The Issue
If a user has two 1080p monitors stacked and sets the bottom one to
0x1080, everything is fine. But if they change the scale of the top monitor to1.25, Hyprland maps coordinates based on the scaled logical resolution:The result: the mouse cursor gets physically trapped and cannot cross the boundary between the monitors. Users are forced to manually switch workspaces just to warp the cursor to the other screen, which feels like a severe system bug.
Reproducible Proof
Here is what my
monitors.lualooked like when the mouse got trapped:And here is the math exposing the gap:
The Solution
Hyprland natively supports relative positioning:
auto,auto-right,auto-left, andauto-down.If we update the Omarchy default templates, setup scripts, and documentation examples to teach
auto-right/auto-down(or justauto) instead of absolute pixels, the configuration becomes bulletproof:References
I'd love to hear your thoughts on this! If the team agrees this is the better approach, I'd be happy to submit a PR to update the relevant docs and templates.
All reactions