Re: [dwm] ntile layout for dwm hg tip

2008-04-02 Thread Nibble
> You could simplify the code by introducing to two global variables that > indicate whether the master or tiled area is horizontal. > So switching to |= would simply set tileh = True and leave masterh > unchanged and switchting to -|= would set tileh = True and masterh = True. > So you could simpl

Re: [dwm] ntile layout for dwm hg tip

2008-04-02 Thread Matthias-Christian Ott
Nibble <[EMAIL PROTECTED]> wrote: > Hi there, > > > And I can say that for xinerama we will probably need to adapt it to > > support also vertical tiling. Using horitzontal it's mostly a waste of > > space on big screens. > > Yes, I think you are right. Furthermore, horizontal tiling (Anselm's >

Re: [dwm] ntile layout for dwm hg tip

2008-03-31 Thread Nibble
Hi there, > And I can say that for xinerama we will probably need to adapt it to > support also vertical tiling. Using horitzontal it's mostly a waste of > space on big screens. Yes, I think you are right. Furthermore, horizontal tiling (Anselm's notation) could be useful for some other geoms (e

Re: [dwm] ntile layout for dwm hg tip

2008-03-31 Thread pancake
Io Nibble :) I have tested your latest patch in my dwm 4.9 and configured xinerama properly (thanks) And I can say that for xinerama we will probably need to adapt it to support also vertical tiling. Using horitzontal it's mostly a waste of space on big screens. But the port works fine :) I w

Re: [dwm] ntile layout for dwm hg tip

2008-03-30 Thread Nibble
Sorry for noise, but this last version of ntile should fit better any geom. Kind regards, Nibble int nmaster = NMASTER; void ntile(void) { unsigned int i, n = counttiled(), lnx, lny, lnw, lnh, lmah, lmw, lmh, lth; Client *c; /* window geoms */ lmah = (n <= nmaster) ? moh : mh; lmh = (n <= n

Re: [dwm] ntile layout for dwm hg tip

2008-03-29 Thread Nibble
Sorry, there was a problem using it in a dual screen setup. Should be fixed now. Kind regards, Nibble int nmaster = NMASTER; void ntile(void) { unsigned int i, n = counttiled(), lnx, lny, lnw, lnh, lmw, lmh, lth; Client *c; /* window geoms */ lmh = (n <= nmaster) ? mh / (n > 0 ? n : 1) : mh

[dwm] ntile layout for dwm hg tip

2008-03-29 Thread Nibble
Hi there, I have adapted the nmaster ntile layout for the current dwm hg tip. Maybe it could be useful for someone else. You should modify config.h to include (after setting RESIZEHINTS): #define NMASTER 1 #include "nmaster.c" Add a new "ntile" layout Layout layouts[] = {