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

From: Johannes Hofmann <Johannes.Hofmann_AT_gmx.de>
Date: Mon, 17 Mar 2008 20:35:59 +0100

On Mon, Mar 17, 2008 at 05:44:25PM +0100, Anselm R. Garbe wrote:
> Hi there, as mentioned yesterday, I found a nice way how to
> handle the geom stuff in the future.
>
> In config.h one can now do:
>
> DEFGEOM(single, 0, 0, sw, 0, bh, sw, sh-bh, wx, wy, 0.55*sw, \
> wh, mx+mw, wy, ww-mw, wh, wx, wy, ww, wh)
> DEFGEOM(dual, 0, 0,1280, 0, bh, ww, wh-bh, wx, wy, \
> 1280,800-bh, 1280, 0, ww-mw, sh, mx, my, mw, mh)
>
>
> which will define a function at compile time called single(),
> which sets all the geometry variables according to the input.
> One can expect s{x,y,w,h} and bh being initialized, and they
> can't be changed.

very nice idea! That's real macro-magic :-)

Kind Regards,
Johannes
Received on Mon Mar 17 2008 - 20:41:50 UTC

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