Re: [dwm] recent changes

From: pancake <pancake_AT_youterm.com>
Date: Wed, 12 Mar 2008 01:03:41 +0100

On Tue, 11 Mar 2008 23:05:56 +0100
"Anselm R. Garbe" <arg_AT_suckless.org> wrote:

> On Fri, Mar 07, 2008 at 12:02:31PM +0100, Szabolcs Nagy wrote:
> > On 3/7/08, pancake <pancake_AT_youterm.com> wrote:
> > > * If we change these #defines to integer variables we will be able to write
> > > external
> > > commands to swap master and slave area between two monitors, join both
> > > areas, manage
> > > setmwfact or creating mixed layouts. And everything without touching the
> > > core :)
> >
> > +togglebar
>
> I agree on having the defines being assigned to specific
> variables/I pushed a change accordingly some minutes ago.

Yeah! nice!

I have reimplemented the togglebar and setmwfact for current 4.8.
My config is attached too, it should work on mostly common configurations.

Obviously the mwfact plugin doesn't works well with multiple screens.

patches are attached.

Im not very proud of these codes, but they work and show how
to change the master/tile/bar variables.
 
> However, the defines are useful as they are, because they are
> allowed to depend on bh and s{x,y,w,h} which are initialized
> before the assignments (otherwise things like int mw = sw; in
> config.h won't work, because sw is not initialized in the global
> scope already due to DisplayWidth() depending on dpy).

Yeah this is good :) we can ignore hardcoding the resolution if
we only use one monitor using:

#define SCRT sw*3/5
#define SCRW sw
#define SCRH sh

What do you think about the addition of a third area for "static"
applications that can be used for a third monitor or a second one
with a default dwm configuration in the first monitor. This would
be a sample configuration.

  screen 1 screen 2
+-----------+ +-----+-----+
| | | | | |
| |----| |-----|-----|
| | | | | |
+------+----+ +-----+-----+

We can define a toggle to switch between the screen 1 and two with a
"zoom" key to move applications between static area and master one.

This way we can also enhace the layout configuration with a single
monitor with three areas in this way:

+-----------+
| | | M = Master
| M | T | T = Tiled
+-----| | S = Static
| S | |
+-----+-----+

The simplest way I can imagine for this is by specifying a tag into a frame area
to make it visible in some place of the screen.

Maybe this is too many changes for 4.7 - 4.8 but I maybe good for single
and multiple screens.

--pancake

Received on Wed Mar 12 2008 - 01:03:45 UTC

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