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

2008-03-19 Thread Anselm R. Garbe
On Wed, Mar 19, 2008 at 01:15:30AM +0100, Nibble wrote: 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

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

2008-03-19 Thread Szabolcs Nagy
On 3/19/08, Anselm R. Garbe [EMAIL PROTECTED] wrote: The problem is: void configurenotify(XEvent *e) { XConfigureEvent *ev = e-xconfigure; if(ev-window == root (ev-width != sw || ev-height != sh)) { sw = ev-width; sh = ev-height; setgeom(NULL); } } This event handler is invoked

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

2008-03-19 Thread yy
2008/3/19, Szabolcs Nagy [EMAIL PROTECTED]: what's wrong with void growm(const char *arg) { mw += 20; } ? shouldn't it be void growm(const char *arg) { mw += 20; setgeom(NULL); } ? But yes, I think this would be the right thing to do. This way we can even have a check to not

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

2008-03-19 Thread Szabolcs Nagy
On 3/19/08, yy [EMAIL PROTECTED] wrote: shouldn't it be void growm(const char *arg) { mw += 20; setgeom(NULL); } ? imho lt-arrange(); + necessary checks should be enough there

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

2008-03-19 Thread Szabolcs Nagy
On 3/19/08, Anselm R. Garbe [EMAIL PROTECTED] wrote: Well, it's not very general. If you use bottom stack, then growm() should touch mh, th and ty instead. With DEFGEOM this is possible already. Having a growm() function like your proposal is too limited in my opinion. the idea is that in

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

2008-03-19 Thread Anselm R. Garbe
On Wed, Mar 19, 2008 at 12:50:23PM +0100, Szabolcs Nagy wrote: On 3/19/08, Anselm R. Garbe [EMAIL PROTECTED] wrote: Well, it's not very general. If you use bottom stack, then growm() should touch mh, th and ty instead. With DEFGEOM this is possible already. Having a growm() function like

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

2008-03-19 Thread Nibble
Well there is one ugly thing to note about the shrinkmaster and growmaster proposal I did some days ago, which I heavily dislike and that's why I also don't propose to keep them as an official feature. The problem is: void configurenotify(XEvent *e) { XConfigureEvent *ev =

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

2008-03-19 Thread Szabolcs Nagy
On 3/19/08, Anselm R. Garbe [EMAIL PROTECTED] wrote: I care only about what should be mainstream and what not. And I think you understand my reasons why I won't like those oneliners being mainstream, if we already have DEFGEOM. now that int bx, by, bw, bh, blw, bgw, mx, my, mw, mh, mox, moy,

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

2008-03-19 Thread dtm
pancake [EMAIL PROTECTED] writes: You missed the bar DEFGEOM(bottom, 0, 0, sw, 0, bh, sw, sh-bh, wx, wy, sw, 0.70*wh, wx, mh+bh, ww, wh-mh, wx, wy, ww, wh) Thanks for the fix. -- dtm

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

2008-03-18 Thread usrucb
The new setgeom stuff is nice, great work! Here's a bottom stack setup: Geom... DEFGEOM(bottom, 0, 0, sw, 0, bh, sw, sh-bh, wx, wy, sw, 0.55*wh, wx, mh, ww, wh-mh, wx, wy, ww, wh) Layout... { TT, bottom }, Key... { MODKEY, XK_b, setgeom, TT }, { MODKEY, XK_b, setlayout,

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

2008-03-18 Thread pancake
On Tue, 18 Mar 2008 12:18:21 -0700 [EMAIL PROTECTED] wrote: The new setgeom stuff is nice, great work! Here's a bottom stack setup: nice! :) Geom... DEFGEOM(bottom, 0, 0, sw, 0, bh, sw, sh-bh, wx, wy, sw, 0.55*wh, wx, mh, ww, wh-mh, wx, wy, ww, wh) You missed the bar

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

2008-03-18 Thread Nibble
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,

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

2008-03-17 Thread Anselm R. Garbe
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,

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

2008-03-17 Thread Ralph E. Carter
From: [EMAIL PROTECTED] To: dwm@suckless.org Date: Mon, 17 Mar 2008 22:38:06 +0100 Subject: Re: [dwm] found a nice way to do the setgeom stuff To grow/shrink the master area, you could reuse this approach as follows: DEFGEOM(growmaster, bx, by,

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

2008-03-17 Thread Anselm R. Garbe
On Mon, Mar 17, 2008 at 07:49:19PM -0400, Ralph E. Carter wrote: From: [EMAIL PROTECTED] To: dwm@suckless.org Date: Mon, 17 Mar 2008 22:38:06 +0100 Subject: Re: [dwm] found a nice way to do the setgeom stuff To grow/shrink the master area, you

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

2008-03-17 Thread Nibble
Hi there, Here you have a geom which hides the status bar: DEFGEOM(hidebar, -bw, by, bw, wx, wy-=bh, ww, wh+=bh, mx, my-=bh, mw, mh+=bh, tx, bw==ww?ty-=bh:ty, tw, bw==ww?th+=bh:th, mox, moy-=bh, mow, moh+=bh) { -X, hidebar } { MODKEY, XK_b, setgeom,