X11::ko...::Layout(3)
π¦ X11::ko...::Layout π¦
okay bestie, so this is X11::ko...::Layout(3), a User Contributed Perl Documentation page, and it's lowkey about one of the most satisfying things ever: putting windows in their proper order. Let's get into it π
π DESCRIPTION π
The whole idea behind this module is, like, arranging windows in a proper order β¨ There's a kind of "default" layout for any tag, right? And every single time a user starts using a tag (meaning they create the first window on it), the layout for that tag gets copied from the default one over to a "working" one. Iconic. Then the user can either close all the windows on that tag β which means that working layout gets disposed of β or they can change the layout sizes in several different ways. Their choice, main character energy π
The working layout depends on the number of tiled windows in it: like, the layout for a single window is genuinely different from the layout for a whole bunch of them. No cap.
So based on the number of windows, we need to get a "layout object", which could either be altered in edge sizes, or handle a list of windows, configuring them one by one to match the selected scheme π«Ά
Layout relies on grid division of the screen. First it divides the screen into a number of rows, and then into columns. The "default" layout for 5 windows looks like this:
{
'cols' => [
'0.5',
'0.5'
],
'ncols' => 2,
'nrows' => 3,
'rows' => [
'0.333333333333333',
'0.333333333333333',
'0.333333333333333'
]
};
Then it's being translated into a grid, where the first element of each array is the column's weight, and the other elements are the row weights inside that column πΈ So for 5 windows the grid will look like:
[
[
'0.5',
'0.5',
'0.5'
],
[
'0.5',
'0.333333333333333',
'0.333333333333333',
'0.333333333333333'
]
];
And the user maybe will be able to change weights in their local copy of the grid, and everything will work in the same way π (yes, "maybe" β that's the actual vibe of the original, we're not gonna pretend it's a promise π)
okay that's literally the whole page, short and sweet, ate and left no crumbs π
βΏ sign-off time βΏ this iconic little doc is from perl v5.42.2, dated 2026-02-15, and it's the X11::ko...::Layout(3) page π§π go forth and tile those windows, bestie π¦
π¦ where this page comes from
- alpine 3.24: perl-x11-korgwm-doc 5.0-r1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms