autopage
Description
The autopage patch for dwm adds configurable per-layout client page
capacity with automatic "paging" to overflow clients to the next tag.
Rule-assigned and manually moved clients are protected from autopaging while
empty slots are filled by eligible autopaged clients from the neighboring tag.
The behavior of autopage can be configured in config.def.h
`
static const Layout layouts[] = {
/* symbol arrange page capacity follow*/
{ "[T]=", tile, 0, 0 }, /* unlimited clients per tag */
{ "[A]=", tile, 3, 0 }, /* 3 clients allowed per tag */
{ "[AF]=", tile, 4, 1 }, /* 4 clients allowed per tag and follow autopagedclients */
{ "[F]", NULL, 0, 0 }, /* no layout function means floating behavior */
{ "[M]", monocle, 0, 0 }, /* unlimited clients per tag */
};
`
The example only shows customization of the tiled layout, but the autopager
is not layout dependent. It can work on just about any layout except for
"floating" because I wrote it so that floating windows are not autopage
candidates.
As clients are closed, autopaged clients are pulled from subsequent tags to fill empty slots left by the closed clients. Rule-assigned and manually moved clients are still protected and will not change position.
Behavior
capacity = 3 Tag 1: C1 C2 C3 Tag 2: C4 C5 C6 Tag 3: C7 C8 C9 Tag 4: C10 C11 C12
(close client 4)
Tag 1: C1 C2 C3 Tag 2: C5 C6 C7 Tag 3: C8 C9 C10 Tag 4: C11 C12
Download
- dwm-autopage-6.8.diff (2026-08-21)