dwm-meillo
diff event.c @ 114:dfa5cd0969a6
implemented regexp matching for rules
author | arg@10ksloc.org |
---|---|
date | Wed, 19 Jul 2006 17:42:08 +0200 |
parents | b2445fd41f5e |
children | 329fd7dae530 |
line diff
1.1 --- a/event.c Wed Jul 19 16:38:39 2006 +0200 1.2 +++ b/event.c Wed Jul 19 17:42:08 2006 +0200 1.3 @@ -12,6 +12,14 @@ 1.4 #define MouseMask (ButtonMask | PointerMotionMask) 1.5 1.6 /* CUSTOMIZE */ 1.7 + 1.8 +typedef struct { 1.9 + unsigned long mod; 1.10 + KeySym keysym; 1.11 + void (*func)(Arg *arg); 1.12 + Arg arg; 1.13 +} Key; 1.14 + 1.15 const char *browse[] = { "firefox", NULL }; 1.16 const char *gimp[] = { "gimp", NULL }; 1.17 const char *term[] = { 1.18 @@ -20,7 +28,7 @@ 1.19 }; 1.20 const char *xlock[] = { "xlock", NULL }; 1.21 1.22 -Key key[] = { 1.23 +static Key key[] = { 1.24 /* modifier key function arguments */ 1.25 { ControlMask, XK_0, appendtag, { .i = Tscratch } }, 1.26 { ControlMask, XK_1, appendtag, { .i = Tdev } },