Re: [dev] [dwm] pertag and bstack for 5.6 release
Hi, Thanks for the patches, I wonder why does pertag patch is not included in the mainstream, IMO using dwm without is not handy. To fix the warning you are better changing the "lts" variable type: - Layout *lts[LENGTH(tags) + 1]; + const Layout *lts[LENGTH(tags) + 1]; It works fine for me as well. Regards -- Sidney Amani
[dev] dwm with top and bottom bar
Hi list, I would like to share my conf which is optimized for laptops or single screen users. As I like to keep my top bar with the window title and tag descriptions, I couldn't display enough information in the top-right corner. So I just quickly patched dwm to add a empty bottom border and I use conky to display information at the bottom. My bottom bar is only 10 pix but anyway if you miss some space you can use MODKEY+B to get the full screen available. I let you take a look at the screenshot : http://yfrog.com/b8screenshotconf1p If you want to do the same just launch conky like this : conky -d -y 2 This is the patch, you just have to define an "int marginbottom" in your config.h with the size in pixel of the bottom margin. diff -r bcce736c1de3 dwm.c --- a/dwm.c Tue Jul 14 19:07:53 2009 +0100 +++ b/dwm.c Mon Jul 20 22:43:09 2009 +0200 @@ -1674,6 +1674,9 @@ m->wh = m->mh; if(m->showbar) { m->wh -= bh; +m->wh -= marginbottom; +if(!m->topbar) + m->wy += marginbottom; m->by = m->topbar ? m->wy : m->wy + m->wh; m->wy = m->topbar ? m->wy + bh : m->wy; } Enjoy -- Sidney Amani
Re: [dev] dwm pertag_5.7
I pushed it last night should work with the 5.7.2 I forgot to let ml users know sorry for that. -- Sidney Amani
Re: [dev] [dwm] pertag and struct Monitor issues
2009/9/29 Tadeusz Sośnierz : > And so I run out of ideas. Is there any > other way than moving this struct to config.h? I guess you can include gaplessgrid.h in dwm.c right after Monitor structure declaration. -- Sidney Amani
Re: [dev] [dwm] pertag and struct Monitor issues
On Wed, Sep 30, 2009 at 9:37 AM, Mate Nagy wrote: >> Would it make sense to add a >> >> void *aux; >> >> to Monitor, that patches don't need to screw around with dwm.c? > IMHO this would be really ugly and patches mucking up dwm.c would be > preferable to this. > I agree, and it wouldn't work when mixing patches. -- Sidney Amani