aewl
diff 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 |
line diff
1.1 --- a/kb.c Wed Jul 12 17:50:31 2006 +0200 1.2 +++ b/kb.c Thu Jul 13 01:04:38 2006 +0200 1.3 @@ -7,27 +7,32 @@ 1.4 1.5 #include <X11/keysym.h> 1.6 1.7 -static const char *term[] = { 1.8 +/********** CUSTOMIZE **********/ 1.9 + 1.10 +char *cmdterm[] = { 1.11 "aterm", "-tr", "+sb", "-bg", "black", "-fg", "white", "-fn", 1.12 - "-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*", 0 1.13 + "-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*",NULL 1.14 }; 1.15 1.16 -static const char *proglist[] = { 1.17 +char *cmdproglist[] = { 1.18 "sh", "-c", "exec `ls -lL /bin /sbin /usr/bin /usr/local/bin 2>/dev/null " 1.19 "| awk 'NF>2 && $1 ~ /^[^d].*x/ {print $NF}' | sort | uniq | gridmenu`", 0 1.20 }; 1.21 1.22 static Key key[] = { 1.23 - { Mod1Mask, XK_Return, run, term }, 1.24 - { Mod1Mask, XK_p, run, proglist }, 1.25 + { Mod1Mask, XK_Return, run, cmdterm }, 1.26 + { Mod1Mask, XK_p, run, cmdproglist}, 1.27 { Mod1Mask, XK_k, sel, "prev" }, 1.28 { Mod1Mask, XK_j, sel, "next" }, 1.29 - { Mod1Mask, XK_g, arrange, NULL }, 1.30 + { Mod1Mask, XK_g, grid, NULL }, 1.31 + { Mod1Mask, XK_f, floating, NULL }, 1.32 { Mod1Mask, XK_m, max, NULL }, 1.33 { Mod1Mask | ShiftMask, XK_c, kill, NULL }, 1.34 { Mod1Mask | ShiftMask, XK_q, quit, NULL }, 1.35 }; 1.36 1.37 +/********** CUSTOMIZE **********/ 1.38 + 1.39 void 1.40 update_keys() 1.41 {