dwm-meillo

diff kb.c @ 27:f96fb3fd8203

added grid mode on Mod1Mask g
author Anselm R. Garbe <garbeam@wmii.de>
date Wed, 12 Jul 2006 16:00:51 +0200
parents 95ffdfd0a819
children 3dceb132082d
line diff
     1.1 --- a/kb.c	Wed Jul 12 15:17:22 2006 +0200
     1.2 +++ b/kb.c	Wed Jul 12 16:00:51 2006 +0200
     1.3 @@ -13,16 +13,18 @@
     1.4  };
     1.5  
     1.6  static const char *proglist[] = {
     1.7 -		"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
     1.8 +		"sh", "-c", "exec `ls -lL /bin /sbin /usr/bin /usr/local/bin 2>/dev/null "
     1.9 +		"| awk 'NF>2 && $1 ~ /^[^d].*x/ {print $NF}' | sort | uniq | gridmenu`", 0
    1.10  };
    1.11  
    1.12  static Key key[] = {
    1.13  	{ Mod1Mask, XK_Return, run, term },
    1.14  	{ Mod1Mask, XK_p, run, proglist }, 
    1.15 -	{ Mod1Mask, XK_k, sel, "prev"}, 
    1.16 -	{ Mod1Mask, XK_j, sel, "next"}, 
    1.17 -	{ Mod1Mask | ShiftMask, XK_c, kill, NULL}, 
    1.18 -	{ Mod1Mask | ShiftMask, XK_q, quit, NULL},
    1.19 +	{ Mod1Mask, XK_k, sel, "prev" }, 
    1.20 +	{ Mod1Mask, XK_j, sel, "next" }, 
    1.21 +	{ Mod1Mask, XK_g, arrange, NULL }, 
    1.22 +	{ Mod1Mask | ShiftMask, XK_c, kill, NULL }, 
    1.23 +	{ Mod1Mask | ShiftMask, XK_q, quit, NULL },
    1.24  };
    1.25  
    1.26  void