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

From: Nibble <nibble_AT_develsec.org>
Date: Mon, 17 Mar 2008 22:38:06 +0100

> 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
Received on Mon Mar 17 2008 - 22:38:50 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:26:48 UTC