# Re: [dwm] found a nice way to do the setgeom stuff

From: Ralph E. Carter <vamosaverlas_AT_hotmail.com>
Date: Mon, 17 Mar 2008 19:49:19 -0400

----------------------------------------
> From: nibble_AT_develsec.org
> To: dwm_AT_suckless.org
> Date: Mon, 17 Mar 2008 22:38:06 +0100
> Subject: Re: [dwm] found a nice way to do the setgeom stuff
>
>> To grow/shrink the master area, you could reuse this approach as
>> follows:
>>
>> DEFGEOM(growmaster, bx, by, bw, wx, wy, ww, wh, mx, my, \
>> mw+=20, mh, tx, ty, tw-=20, th, mox, moy, mow, moh)
>> DEFGEOM(shrinkmaster, bx, by, bw, wx, wy, ww, wh, mx, my, \
>> mw-=20, mh, tx, ty, tw+=20, th, mox, moy, mow, moh)
>>
>> { "+|", growmaster },
>> { "|-", shrinkmaster },
>>
>> { MODKEY, XK_h, setgeom, "|-" },
>> { MODKEY, XK_l, setgeom, "+|" },
>
> It is not very important, but the right GEOM definition for growmaster and
> shrinkmaster should be:
>
> DEFGEOM(shrinkmaster, bx, by, bw, wx, wy, ww, wh, mx, my, \
> mw-=20, mh, tx-=20, ty, tw+=20, th, mox, moy, mow, moh)
> DEFGEOM(growmaster, bx, by, bw, wx, wy, ww, wh, mx, my, \
> mw+=20, mh, tx+=20, ty, tw-=20, th, mox, moy, mow, moh)
>
> And, of course, nice work!! I really like the new geometries concept.
>
> Kind regards,
> Nibble
>
Right. This fixed mine. Thanks.
_________________________________________________________________