Re: [dwm] visibility of focused windows

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Thu, 6 Mar 2008 15:49:53 +0100

On Thu, Mar 06, 2008 at 03:35:08PM +0100, Joerg van den Hoff wrote:
> On Wed, Mar 05, 2008 at 11:00:49PM -0500, John S. Yates, Jr. wrote:
> > I have not looked at the code in a good while but wanted to suggest
> > the following code concept. My thought sprang from Anselm writing
> >
> > > I propose using setlayout("[M]") and setlayout("[]=")
> >
> > and then later
> >
> > > I plan to introduce 3 additional key bindings:
> > >
> > > Mod1-f (Apply floating layout)
> > > Mod1-m (Apply monocle layout)
> > > Mod1-t (Apply tiled layout)
> >
> > There already is a notion of the current layout. Imagine that
> > there is also a saved layout and the following function:
> >
> > char *resolvelayout(char *proposed)
> > {
> > if (proposed == current)
> > proposed = saved;
> > else
> > saved = current;
> > current = proposed;
> > return proposed;
> > }
> >
> > With this function I can have every target layout toggle:
> >
> > setlayout( resolvelayout("[M]") );
> > setlayout( resolvelayout("[]=") );
> > setlayout( resolvelayout("<><") );
> >
> > Just a thought,

I agree, that's a nice solution in my eyes.

-- 
 Anselm R. Garbe >< http://www.suckless.org/ >< GPG key: 0D73F361
Received on Thu Mar 06 2008 - 15:49:53 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:24:07 UTC