by prhn · 8mo ago · 0 comments
Managing windows with OS idiosyncrasies becomes a task in itself.
However, I've also learned recently it depends what you're doing.
Software development, I just want one single maximized window on a single laptop monitor. If I have a near-retina DPI monitor with 120hz+ (I can't deal with low DPI fuzziness and low refresh all day) I'll usually have a 3-4 window layout on a single monitor with the IDE taking up half the screen.
There is a minor cognitive hit from switching focus between monitors for things like reading documentation, so I don't like doing that.
Music production? Man, I could probably use like 3+ monitors. Main stems view, a separate monitor for open VSTs, a separate monitor for video, a separate one for piano roll maybe. The window juggling gets really cumbersome on a single monitor.
My friend who is a professional musician (makes music for TV shows) uses 3 large TVs for music production.
Do you not feel like there's a similar hit from switching full screen windows? Or is your documentation within your full screen IDE?
I feel like it should be, but in practice it isn't.
Sounds counter-intuitive, I know, but switching between windows on the same screen has near-zero context loss.
I also use a 3x3 grid of workspaces (center one is browser, all the others are dedicated to a single project/context/session/task each), and navigating workspaces (modifier+shift+arrows) also has near-zero contextual hit.
Even more counter-intuitively, while a second screen produces a large and irritating context-switch cost, using a little (physical, pen-and-paper) notepad next to me has even less context-switch loss than switching windows or workspaces do. It happens without me even realising it - sometimes I'd arise from a long session of coding and be surprised at some notes I made while coding.
There's probably something learnable about the human mind in all of this.
Tiling window managers are a good solution.
If you created a window right now, where will it go? Which window will it take its space from? Does it use your focused window? Your mouse position? If your WM supports mixed floating & tiling, how does it go when you flip a window between them? etc. That's all cognitive load when you aren't familiar and still requires some hand control when you are.
The most important thing is to have a way to search through the pile. (Raycast window search is pretty good.)
> If you created a window right now, where will it go?
The new window becomes the focused window. It's inserted into the master position. Existing windows shift down the (conceptual) stack.
> Does it use your focused window?
It uses the same screen space, yes.
> Which window will it take its space from?
All of the other visible windows. It recomputes the tiles so that all tiles except the master become smaller, to make room for the new one.
> Your mouse position?
By default, mouse position is ignored. XMonad is keyboard-centric by design. You can set a mouse-follow configuration variable if you want. I've never tried it.
> If your WM supports mixed floating & tiling, how does it go when you flip a window between them?
It recomputes the tiles in much the same way as above. It's as though you deleted the window from the tiling and it becomes floating. And vice versa. It's a very consistent model.
I find it very natural and predictable. As far as "cognitive load" goes, that seems like an exaggeration, but again I haven't used hyprland.
If by "hand control" you mean using the mouse, that's definitely not needed for window management. In fact by default, XMonad doesn't even support resizing tiles using the mouse, and I've never tried to enable that. I do commonly use the mouse for switching focus, usually because I'm navigating to some location in another window anyway, in which case focus moves automatically.
For curiosities sake, what window manager did you try?
And most algorithms for management are deterministic. The position and the size of the new windows is always known.
Dual 4k 27" monitors on Linux with KDE Plasma near perfect.