diff options
author | Anselm R. Garbe <garbeam@wmii.de> | 2006-07-11 18:15:11 +0200 |
---|---|---|
committer | Anselm R. Garbe <garbeam@wmii.de> | 2006-07-11 18:15:11 +0200 |
commit | 586f66331d1105be03c42e6faeae1672b974a98a (patch) | |
tree | b5a4f654969baf431ac0f10dad2354d70e7efc2b /key.c | |
parent | 33996500763b04119a6867dfa4040a4236c21a41 (diff) | |
download | dwm-586f66331d1105be03c42e6faeae1672b974a98a.tar.gz |
added bar event timer
Diffstat (limited to 'key.c')
-rw-r--r-- | key.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/key.c b/key.c index b5d46c6..7caae15 100644 --- a/key.c +++ b/key.c @@ -7,8 +7,20 @@ #include <X11/keysym.h> +static const char *term[] = { + "xterm", "-u8", "-bg", "black", "-fg", "white", "-fn", + "-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*", 0 +}; + +static const char *proglist[] = { + "sh", "-c", "exec `ls -lL /bin /sbin /usr/bin /usr/local/bin 2>/dev/null | awk 'NF>2 && $1 ~ /^[^d].*x/ {print $NF}' | sort | uniq | gridmenu`", 0 +}; + static Key key[] = { - KEYS + { Mod1Mask, XK_Return, run, term }, + { Mod1Mask, XK_p, run, proglist }, + { Mod1Mask | ShiftMask, XK_c, kill, NULL}, + { Mod1Mask | ShiftMask, XK_q, quit, NULL}, }; void @@ -37,7 +49,7 @@ keypress(XEvent *e) for(i = 0; i < len; i++) if((keysym == key[i].keysym) && (key[i].mod == ev->state)) { if(key[i].func) - key[i].func(key[i].arg); + key[i].func(key[i].aux); return; } } |