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 notation)

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 simple

Re: [dwm] ntile layout for dwm hg tip

2008-03-31 Thread pancake
would like to see something like vntile and hntile or just a toggle for it. What do you think about this? --pancake On Sun, 30 Mar 2008 01:41:06 +0100 Nibble [EMAIL PROTECTED] wrote: Hi there, I have adapted the nmaster ntile layout for the current dwm hg tip. Maybe it could be useful

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 (eg

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 =

[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

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