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] random wm thoughts

2008-03-19 Thread David Tweed
On Wed, Mar 19, 2008 at 4:44 AM, John Li <[EMAIL PROTECTED]> wrote: > - For a short while, I experimented with using the floating layout as my > default layout. It was actually kind of interesting. The main > advantage of it: it adds a certain kind of predictability when > adding/removing ta

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, m

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 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

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 i

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 Anselm R. Garbe
On Wed, Mar 19, 2008 at 11:04:35AM +0100, Szabolcs Nagy wrote: > 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))

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 t

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

Re: [dwm] How do I remove the bar? Re: dwm-4.8 / dmenu-3.5 / slock-0.8

2008-03-19 Thread anhnmncb
off the topic, are you a freebsd user? Does your dwm work well in freebsd? I've encounter some problem when switch between dwm and consoles, some times this type of switch will let dwm quit but xorg-server, I have to kill the xorg. -- Reguards, anhnmncb. PGP key: 44A31344 pgpaIggw8oXxX.pgp Des

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) > /* D

Re: [dwm] How do I remove the bar? Re: dwm-4.8 / dmenu-3.5 / slock-0.8

2008-03-19 Thread Anselm R. Garbe
Upgrade to hg tip, 4.9 will be there very soon and have a look to DEFGEOM in config.def.h. To hide the bar, you could do: DEFGEOM(nobar, -bw, 0, sw, 0, 0, sw, sh, wx, wy, 0.55*sw, wh, mx+mw, wy, ww-mw, wh, wx, wy, ww, wh) and a new geoms entry: { "||", nobar }, and a shortcut

[dwm] How do I remove the bar? Re: dwm-4.8 / dmenu-3.5 / slock-0.8

2008-03-19 Thread Vasil Dimov
On Thu, Mar 13, 2008 at 18:08:03 +0100, Anselm R. Garbe wrote: > Hi there, > > I'm glad to announce some new releases after months of > development and absence: > > http://www.suckless.org/download/dwm-4.8.tar.gz [...] Thanks! How do I remove/toggle the bar? Alt+b does not work anymore and I