Repository navigation
Floating mode: remember window size after manual resize #17876
Replies: 3 comments 1 reply
|
+1 — I wanted the same thing (position too, not just size), so I tried it out on my box as a small user service. Sharing it in case it helps decide the direction. What it does
How (Hyprland 0.57.1, Omarchy 4)
Thoughts for a native version
Tested on a MacBook Pro M1 (Asahi, ARM64) with an external monitor. Happy to share the script if useful. |
|
I second this request. I think the floating mode needs to remember all sizes and positions (with all the edge cases around it like summoning on a different monitor and so on). I would be happy to contribute what I have if there is a need. |
|
@Killiivalavan @devmil https://plugins.omarchy.org/plugin.html?id=dleadmanps.windows-like If theres anything youd like me to update on it just let me know |
Uh oh!
There was an error while loading. Please reload this page.
When a workspace is in floating mode, switching into it (or back into it) forces every window to a default size and re-centers it. I'd love an option to keep a window's size (and ideally position) once I've manually resized it, so I don't have to re-arrange my workspace every time.
Current behavior (as i understand it) - workspace-modes.lua runs place() on windows being floated by the mode, which sets min(1100, monitor_w×0.64) × min(760, monitor_h×0.68) and centers+cascades. New windows on a floating workspace get the same via the omarchy-floating-open-* rules. This is clearly intentional and gives a nice "comfortable default".
I'd like a toggle that keeps the default sizing for windows that haven't been touched, but once a window is manually resized (or moved) by the user, stop overriding its geometry on subsequent floating-mode entries. In other words: the default applies only to "fresh" windows; a window I've arranged is left alone.
this doesnt have to replace the current default size for the floating window behavior. rather there could be a toggle to switch between these two behaviors.
Floating mode is the closest Omarchy gets to a traditional desktop, and on a traditional desktop windows remember where you put them. Losing that on every mode switch makes floating mode feel temporary rather than like a real workspace I can settle into.
So my questions are:
I'm happy to open a PR if there's interest. I'd rather get direction here first than submit a PR that fights the design intent.
All reactions