Repository navigation
Floating workspaces: scroll under the pointer, and keep a window's size and place #17971
codechizel
started this conversation in
Suggestions
Replies: 0 comments
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.
I moved to Omarchy from a Mac and really like the new floating workspace mode in 4.5. Two small changes would make it feel more natural for Mac users. Both are in
default/hypr/workspace-modes.lua(Omarchy 4.5.0, Hyprland 0.56.2).1. Scroll the window under the pointer on floating workspaces.
On a floating workspace,
update_input()setsfollow_mouse = 0(line 335). Two-finger scrolling then goes to the window that last had focus, not the window under the pointer, so you have to click a background window before you can scroll it. On a Mac you scroll whatever is under the pointer.follow_mouse = 2would keep click-to-focus, which I take to be the point of the 0, while letting hover and scrolling follow the pointer.2. Keep a floating window's size and place when it leaves and comes back.
When a floated window goes to another workspace and returns, for example after going full screen on a workspace of its own,
float_for_mode()andplace()(lines 95-150) put it back centered at the standard size (64% x 68%, at most 1100x760). The size and position it had are lost. It would be nice if the mode remembered the window's last floating box, perhaps in a tag or a table keyed by address, and restored it when the window comes back.Happy to test either change.
🤖 Generated with Claude Code
All reactions