[dwm] ntile.c (NMASTER) for hg tip

From: Peter Hartlich <sgkkr_AT_hartlich.com>
Date: Sun, 6 Jul 2008 21:09:57 +0200

Hi,

I've modified Michael Elkins' elegant ntile layout implementation for use
with hg tip (any bugs are probably due to me).

To use it, save the attached ntile.c in your dwm folder, add

| #define NMASTER 1 /* number of clients in master area */
| #include "ntile.c"

before the layouts[] definition, and add ntile to the latter.

You can then use something like

| { MODKEY|ShiftMask, XK_h, setnmaster, {.i = -1} },
| { MODKEY|ShiftMask, XK_n, setnmaster, {.i = 0} } /* reset */,
| { MODKEY|ShiftMask, XK_l, setnmaster, {.i = +1} },

in your keys[] definition.

Regards,
Peter

Received on Sun Jul 06 2008 - 21:10:22 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:53:24 UTC