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
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
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
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
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
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
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 =
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,
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
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,
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
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,
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,
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,
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
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,
16 matches
Mail list logo