On 11/8/07, Anselm R. Garbe <[EMAIL PROTECTED]> wrote:
> > const char *tags[] = {tag1, tag2, ..};
> > Key keys[] = {{MODKEY,XK_1,view,tag1}, ..};
>
> That's uglier than the KEYS macro.
ok a second try (prepare for uglyness)
#define MAXTAGLEN 10
const char tags[][MAXTAGLEN] = {"tag1", "work", "www", ..};
Key keys[] = {{MODKEY, XK_1, view, tags[0]}, ..};
it's a bit waste of space (sizeof tags == LENGTH(tags) * MAXTAGLEN)
and one should set MAXTAGLEN properly (won't compile if it's too small)
but it works