Re: [dwm] new stacking options

From: Ross Mohn <rpmohn_AT_waxandwane.org>
Date: Fri, 29 Sep 2006 10:21:47 -0400

On Fri, 2006-09-29 at 16:08 +0200, Anselm R. Garbe wrote:
> On Fri, Sep 29, 2006 at 09:52:32AM -0400, Ross Mohn wrote:
> > On Fri, 2006-09-29 at 09:36 -0400, Ross Mohn wrote:
> > > On Fri, 2006-09-29 at 15:06 +0200, Anselm R. Garbe wrote:
> > > > Nah, forget what I wrote, I removed the Mod1-d stuff, this
> > > > scales too poorly. I think the wide-layout patch is not so bad,
> > > > thus current tip supports basically what wide-layout does (due
> > > > to toggling the stack position between side and bottom).
> > > >
> > > > This feels better and simplier.
> > >
> > > Feels good to me! How about allowing for different SYMBOLs for
> > > VERTICALSTACK == TRUE/FALSE ?
> > > -RPM
> >
> > Something like this works great for me:
> >
> > --- /usr/local/src/dwm/dwm/draw.c 2006-09-29 09:48:42.000000000 -0400
> > +++ draw.c 2006-09-29 09:46:32.000000000 -0400
> > @@ -104,7 +104,7 @@ drawstatus(void) {
> > }
> >
> > dc.w = bmw;
> > - drawtext(arrange == dofloat ? FLOATSYMBOL : TILESYMBOL, dc.status, False);
> > + drawtext(arrange == dofloat ? FLOATSYMBOL : stackpos == StackBottom ? BSTACKSYMBOL : VSTACKSYMBOL, dc.status, False);
> >
> > x = dc.x + dc.w;
> > dc.w = textw(stext);
> > --- /usr/local/src/dwm/dwm/main.c 2006-09-29 09:48:42.000000000 -0400
> > +++ main.c 2006-09-29 09:42:41.000000000 -0400
> > @@ -129,7 +129,8 @@ setup(void) {
> > dc.status[ColFG] = getcolor(STATUSFGCOLOR);
> > setfont(FONT);
> >
> > - bmw = textw(FLOATSYMBOL) > textw(TILESYMBOL) ? textw(FLOATSYMBOL) : textw(TILESYMBOL);
> > + bmw = textw(VSTACKSYMBOL) > textw(BSTACKSYMBOL) ? textw(VSTACKSYMBOL) : textw(BSTACKSYMBOL);
> > + bmw = bmw > textw(FLOATSYMBOL) ? bmw : textw(FLOATSYMBOL);
> > sx = sy = 0;
> > sw = DisplayWidth(dpy, screen);
> > sh = DisplayHeight(dpy, screen);
> > --- /usr/local/src/dwm/dwm/config.default.h 2006-09-29 09:48:42.000000000 -0400
> > +++ config.default.h 2006-09-29 09:49:53.000000000 -0400
> > @@ -9,7 +9,8 @@ const char *tags[] = { "1", "2", "3", "4
> > #define DEFMODE dotile /* dofloat */
> > #define FLOATSYMBOL "><>"
> > #define STACKPOS StackRight /* StackLeft */
> > -#define TILESYMBOL "[]="
> > +#define VSTACKSYMBOL "[]="
> > +#define BSTACKSYMBOL "==="
> >
> > #define FONT "fixed"
> > #define NORMBGCOLOR "#333366"
>
> Ok, this is the last thing I apply for now!!!

Ahhhhhh, refreshing!

Thanks for all your excellent work on this Anselm! I anxiously await st!
-RPM
Received on Fri Sep 29 2006 - 16:21:51 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:31:44 UTC