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

From: Nibble <nibble_AT_develsec.org>
Date: Wed, 19 Mar 2008 01:15:30 +0100

Finally, I have included the next Geoms in my config.h (dual screen setup:
virtual 2048x768):

/* Single screen */
DEFGEOM(single, 0, 0, sw, 0, bh, sw, sh-bh, wx, wy, MWFACT*sw, wh, mx+mw,
wy, ww-mw, wh, wx, wy, ww, wh)
/* Dual screen */
DEFGEOM(dual, 0, 0, 1024, 0, bh, sw, sh-bh, wx, wy, 1024,768-bh, 1024, 0,
ww-mw, sh, mx, my, mw, mh)
/* Single screen without bar*/
DEFGEOM(singlewob, -sw, 0, sw, 0, 0, sw, sh, wx, wy, MWFACT*sw, wh, mx+mw,
wy, ww-mw, wh, wx, wy, ww, wh)
/* Dual screen without bar */
DEFGEOM(dualwob, -1024, 0, 1024, 0, 0, sw, sh, wx, wy, 1024, 768, 1024, 0,
ww-mw, sh, mx, my, mw, mh)
/* Shrink master */
DEFGEOM(shrinkmaster, bx, by, bw, wx, wy, ww, wh, mx, my, mw-=20, mh, tx-=20,
ty, tw+=20, th, mox, moy, mow, moh)
/* Grow master */
DEFGEOM(growmaster, bx, by, bw, wx, wy, ww, wh, mx, my, mw+=20, mh, tx+=20,
ty, tw-=20, th, mox, moy, mow, moh)

Geom geoms[] = {
        /* symbol function */
        { "<->", single }, /* first entry is default */
        { "-)(", dual },
        { "<.>", singlewob },
        { ".)(", dualwob },
        { "|-", shrinkmaster },
        { "+|", growmaster },
};

I have kept the shrinkmaster and growmaster geoms due to it is useful to
change the master area width regardless of the geom you are using.

Kind regards,
Nibble
Received on Wed Mar 19 2008 - 01:15:52 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:27:12 UTC