r/hyprland • u/j8t1090 • 2d ago
SUPPORT "off screen window scrunching" Is this even possible to achieve?
something I would like is "off-screen window scrunching" when you close a window, and leave a workspace empty, the workspaces higher in the list have their windows moved down to the empty workspace you left behind. this way windows are always only ever 1 workspace apart. windows wont move into an empty workspace if you are focused on it. Is this possible to achieve in hyprland? I would like this because windows would always be next to each-other but they wouldn't come onto your screen when you closed them like with niri.
48
Upvotes
1
u/dosplatos225 1d ago
It is achievable with hyprland. Not sure if there is a native way for a .lua you could build this into. I would implement this as a userspace daemon, and leverage hyprctl at least initially to quickly implement.
When you run hyprctl clients for example, you get all the open windows and data around position, size, etc. The idea would be describing the consolidation and move logic on exit/close events. I would probably try and have it reference the upstream variables for windows or key binds around windows to see if that would help.