Re: [dev] three column layout / getting started writing patches

2010-08-12 Thread Valentin
As I said, it's bound to M-[ and M-] by default, so the examples are already in the code. On Thu, Aug 12, 2010 at 02:47:45PM -0500, Jaime Villarreal wrote: > I saw setmfact() ... but didn't see it called anywhere. Setting the mfact > variable in config.h should have been obvious to me but I'm havi

Re: [dev] three column layout / getting started writing patches

2010-08-12 Thread Jaime Villarreal
I saw setmfact() ... but didn't see it called anywhere. Setting the mfact variable in config.h should have been obvious to me but I'm having trouble understanding where and how setmfact() is being used. On Thu, Aug 12, 2010 at 2:11 PM, Valentin wrote: > On Thu, Aug 12, 2010 at 01:25:19PM -0500,

Re: [dev] three column layout / getting started writing patches

2010-08-12 Thread Valentin
On Thu, Aug 12, 2010 at 01:25:19PM -0500, Jaime Villarreal wrote: > Ah! missed that. Thanks! You did notice setmfact(), right? It's bound to M-[ and M-] by default... pgpZg6nfH9Ouk.pgp Description: PGP signature

Re: [dev] three column layout / getting started writing patches

2010-08-12 Thread Jaime Villarreal
Ah! missed that. Thanks! On Thu, Aug 12, 2010 at 1:07 PM, Pascal Wittmann wrote: > It's set in config.h: > > static const float mfact = 0.55; /* factor of master area size > [0.05..0.95] */ > > > On 08/12/2010 07:50 PM, Jaime Villarreal wrote: > >> thanks again Valentin. >> After hacking a b

Re: [dev] three column layout / getting started writing patches

2010-08-12 Thread Pascal Wittmann
It's set in config.h: static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */ On 08/12/2010 07:50 PM, Jaime Villarreal wrote: thanks again Valentin. After hacking a bit with the code I figured out that I can set the m->mfact variable to a different value in order t

Re: [dev] three column layout / getting started writing patches

2010-08-12 Thread Jaime Villarreal
thanks again Valentin. After hacking a bit with the code I figured out that I can set the m->mfact variable to a different value in order to adjust the proportion of the width of th master column to the other two columns. I am just hard coding a new value into the function you gave me. This works

Re: [dev] three column layout / getting started writing patches

2010-08-11 Thread Jaime Villarreal
That works perfectly. Thanks! On Wed, Aug 11, 2010 at 7:07 PM, Valentin wrote: > Forgot attaching the file... >

Re: [dev] three column layout / getting started writing patches

2010-08-11 Thread Valentin
Forgot attaching the file... void tcl(Monitor *m) { int x, h, w, mw; unsigned int i, n; Client *c; for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++); if(n == 0) return; /* master */ c = nexttiled(m->clients); mw = m->mfact * m->ww; resize(c, n<3?m->wx:m->wx+(m->ww-mw

Re: [dev] three column layout / getting started writing patches

2010-08-11 Thread Valentin
On Wed, Aug 11, 2010 at 11:59:06AM -0500, Jaime Villarreal wrote: > Hi there. > I have a special project for which I'd like to patch dwm to function with a > 3 column layout. > I'd like to have one wide column in the center (ideally this would be the > master column), and two skinnier columns to th

[dev] three column layout / getting started writing patches

2010-08-11 Thread Jaime Villarreal
Hi there. I have a special project for which I'd like to patch dwm to function with a 3 column layout. I'd like to have one wide column in the center (ideally this would be the master column), and two skinnier columns to the right and left. The first three clients to open should occupy these three