XMonad has been my go-to window manager for many years. In its most popular tiling layout, XMoand splits the window into 2 panes. Recently, I got a 21:9 ultrawide monitor. It’s when traditional two-pane looks unsatisfactory.
As shown in the following picture, if XMoand splits a 21:9 monitor into 2 pane, it really wastes a lot of space. The 10.5:9 window is hardly satisfactor. It’s too wide.
Ideally, I would like the screen to be composed of 3 panes. They operate in the following scheme:
If there are only 2 windows, 1 window would take up 1/3 while the other would take up the rest 2/3.
If there are more than 2 windows, the screen would show 3 panes, with width of 1:1:1.
I implemented an XMonad layout to achieve this. It’s called TriPaneTall as shown below:
Two windows are split as 1:2. Very suitable for editor / console + browser combination.
More than two windows will be organized in equally wide panes. More windows will be vertically tiled up in the last pane.
I also implemented 2 messages to increase (decrease) the number of windows in the left and mid pane: