Re: [dwm] 4.7 is delayed

From: Szabolcs Nagy <nszabolcs_AT_gmail.com>
Date: Sat, 10 Nov 2007 11:29:56 +0200

On 11/8/07, Anselm R. Garbe <arg_AT_suckless.org> 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
Received on Sat Nov 10 2007 - 10:29:58 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:05:31 UTC