I have update the nmaster.c to fit with dwm-4.7.. After some time of testing I can say that the dinamic cpt is an absolutely wrong idea and I have dropped.
The code has been reduced thanks to ISTILE and isarrange(). The wiki has been updated but here's the source: http://news.nopcode.org/nmaster-4.7.c I have fixed the master area gaps between clients. I think the tilecols mode is the best one for my needs. I'm currently on a 20" 16:10 TFT and 3 columns and i'm pretty happy with it. Here's my current configuration is: ------------------------------ #define NMASTER 1 #define NCOLS 3 #define NROWS 1 #include "nmaster-4.7.c" Layout layouts[] = { { "E|]", tilecols }, /* first entry is default */ }; (...) { MODKEY|ShiftMask, XK_j, setnmaster, "+1"}, \ { MODKEY|ShiftMask, XK_j, setnrows, "+1" }, \ { MODKEY|ShiftMask, XK_k, setnmaster, "-1"}, \ { MODKEY|ShiftMask, XK_k, setnrows, "-1" }, \ { MODKEY|ShiftMask, XK_h, setncols, "+1" }, \ { MODKEY|ShiftMask, XK_l, setncols, "-1" }, \ --pancake