summaryrefslogtreecommitdiffstats
path: root/event.c
diff options
context:
space:
mode:
authorarg@10ksloc.org <unknown>2006-07-19 17:42:08 +0200
committerarg@10ksloc.org <unknown>2006-07-19 17:42:08 +0200
commitbcaf6a7a0f492c3fafc4baabd2dc06f5191417ee (patch)
treeec21757627c1bef7b9df09f80543a55f41f8a56f /event.c
parentapplied Jukka's patch with s/ModKeyMask/MODKEY/g (diff)
downloaddwm-bcaf6a7a0f492c3fafc4baabd2dc06f5191417ee.tar.gz
dwm-bcaf6a7a0f492c3fafc4baabd2dc06f5191417ee.zip
implemented regexp matching for rules
Diffstat (limited to '')
-rw-r--r--event.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/event.c b/event.c
index f8ad44c..05f4ac5 100644
--- a/event.c
+++ b/event.c
@@ -12,6 +12,14 @@
12#define MouseMask (ButtonMask | PointerMotionMask) 12#define MouseMask (ButtonMask | PointerMotionMask)
13 13
14/* CUSTOMIZE */ 14/* CUSTOMIZE */
15
16typedef struct {
17 unsigned long mod;
18 KeySym keysym;
19 void (*func)(Arg *arg);
20 Arg arg;
21} Key;
22
15const char *browse[] = { "firefox", NULL }; 23const char *browse[] = { "firefox", NULL };
16const char *gimp[] = { "gimp", NULL }; 24const char *gimp[] = { "gimp", NULL };
17const char *term[] = { 25const char *term[] = {
@@ -20,7 +28,7 @@ const char *term[] = {
20}; 28};
21const char *xlock[] = { "xlock", NULL }; 29const char *xlock[] = { "xlock", NULL };
22 30
23Key key[] = { 31static Key key[] = {
24 /* modifier key function arguments */ 32 /* modifier key function arguments */
25 { ControlMask, XK_0, appendtag, { .i = Tscratch } }, 33 { ControlMask, XK_0, appendtag, { .i = Tscratch } },
26 { ControlMask, XK_1, appendtag, { .i = Tdev } }, 34 { ControlMask, XK_1, appendtag, { .i = Tdev } },