Correct me if I'm wrong, but isn't m->lts[0] for the "zero"-tag, i.e.
the one which gets activated by pressing Alt-0 and displays all tags?
On Fri, Oct 22, 2010 at 04:52:56PM +0200, Scott wrote:
> I have got dwm configured with the push,cycle,resize and pertag
> patches, but now I'd like every single tag to have it's own default
> layout. I've tried to following, but it doesn't work correct.
>
> /* init layouts */
> for(m = mons; m; m = m->next) {
> for(i=0; i < LENGTH(tags) + 1; i++) {
> m->lts[i] = initlayouts[i] && initlayouts[i] < LENGTH(layouts) ? &layouts$
> }
> }
>
> But for some reason this doesn't work. I want the second and third tag
> (Browser, and Chat) to use layout two by default, but in order to
> achieve this I have to configure it as the following:
> static const int initlayouts[] = { 0, 0, 2, 2, 0, 0 };
>
> that doesn't really make sense since this is my tag config:
> static const char *tags[] = { "Dev", "Browsing", "Chat", "Multimedia",
> "Virtualization", "Misc" };
>
> config.h: http://pastie.org/private/gszqqcftgbnhd2vij3a9g
> dwm.c: http://pastie.org/private/oy4f5hyhnrhqqkv2fq56a #1560
Received on Fri Oct 22 2010 - 17:06:05 CEST
This archive was generated by hypermail 2.2.0 : Fri Oct 22 2010 - 17:12:02 CEST