Mercurial > dwm-meillo
comparison kb.c @ 31:386649deb651
before leaning things up
author | Anselm R. Garbe <garbeam@wmii.de> |
---|---|
date | Thu, 13 Jul 2006 01:04:38 +0200 |
parents | 8ad86d0a6a53 |
children | 082c75b937b5 |
comparison
equal
deleted
inserted
replaced
30:2e0fb4130bfb | 31:386649deb651 |
---|---|
5 | 5 |
6 #include "wm.h" | 6 #include "wm.h" |
7 | 7 |
8 #include <X11/keysym.h> | 8 #include <X11/keysym.h> |
9 | 9 |
10 static const char *term[] = { | 10 /********** CUSTOMIZE **********/ |
11 | |
12 char *cmdterm[] = { | |
11 "aterm", "-tr", "+sb", "-bg", "black", "-fg", "white", "-fn", | 13 "aterm", "-tr", "+sb", "-bg", "black", "-fg", "white", "-fn", |
12 "-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*", 0 | 14 "-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*",NULL |
13 }; | 15 }; |
14 | 16 |
15 static const char *proglist[] = { | 17 char *cmdproglist[] = { |
16 "sh", "-c", "exec `ls -lL /bin /sbin /usr/bin /usr/local/bin 2>/dev/null " | 18 "sh", "-c", "exec `ls -lL /bin /sbin /usr/bin /usr/local/bin 2>/dev/null " |
17 "| awk 'NF>2 && $1 ~ /^[^d].*x/ {print $NF}' | sort | uniq | gridmenu`", 0 | 19 "| awk 'NF>2 && $1 ~ /^[^d].*x/ {print $NF}' | sort | uniq | gridmenu`", 0 |
18 }; | 20 }; |
19 | 21 |
20 static Key key[] = { | 22 static Key key[] = { |
21 { Mod1Mask, XK_Return, run, term }, | 23 { Mod1Mask, XK_Return, run, cmdterm }, |
22 { Mod1Mask, XK_p, run, proglist }, | 24 { Mod1Mask, XK_p, run, cmdproglist}, |
23 { Mod1Mask, XK_k, sel, "prev" }, | 25 { Mod1Mask, XK_k, sel, "prev" }, |
24 { Mod1Mask, XK_j, sel, "next" }, | 26 { Mod1Mask, XK_j, sel, "next" }, |
25 { Mod1Mask, XK_g, arrange, NULL }, | 27 { Mod1Mask, XK_g, grid, NULL }, |
28 { Mod1Mask, XK_f, floating, NULL }, | |
26 { Mod1Mask, XK_m, max, NULL }, | 29 { Mod1Mask, XK_m, max, NULL }, |
27 { Mod1Mask | ShiftMask, XK_c, kill, NULL }, | 30 { Mod1Mask | ShiftMask, XK_c, kill, NULL }, |
28 { Mod1Mask | ShiftMask, XK_q, quit, NULL }, | 31 { Mod1Mask | ShiftMask, XK_q, quit, NULL }, |
29 }; | 32 }; |
33 | |
34 /********** CUSTOMIZE **********/ | |
30 | 35 |
31 void | 36 void |
32 update_keys() | 37 update_keys() |
33 { | 38 { |
34 unsigned int i, len; | 39 unsigned int i, len; |