[dwm] dwm-4.7 nmaster/cpt/tilecols patch

From: pancake <pancake_AT_youterm.com>
Date: Fri, 23 Nov 2007 03:17:47 +0100

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
Received on Fri Nov 23 2007 - 03:19:00 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:07:31 UTC