dwm-meillo

diff key.c @ 14:5c078b66347b

added bar event timer
author Anselm R. Garbe <garbeam@wmii.de>
date Tue, 11 Jul 2006 18:15:11 +0200
parents d567f430a81d
children
line diff
     1.1 --- a/key.c	Tue Jul 11 16:14:22 2006 +0200
     1.2 +++ b/key.c	Tue Jul 11 18:15:11 2006 +0200
     1.3 @@ -7,8 +7,20 @@
     1.4  
     1.5  #include <X11/keysym.h>
     1.6  
     1.7 +static const char *term[] = { 
     1.8 +	"xterm", "-u8", "-bg", "black", "-fg", "white", "-fn",
     1.9 +	"-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*", 0 
    1.10 +};
    1.11 +
    1.12 +static const char *proglist[] = {
    1.13 +		"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.14 +};
    1.15 +
    1.16  static Key key[] = {
    1.17 -	KEYS
    1.18 +	{ Mod1Mask, XK_Return, run, term },
    1.19 +	{ Mod1Mask, XK_p, run, proglist }, 
    1.20 +	{ Mod1Mask | ShiftMask, XK_c, kill, NULL}, 
    1.21 +	{ Mod1Mask | ShiftMask, XK_q, quit, NULL},
    1.22  };
    1.23  
    1.24  void
    1.25 @@ -37,7 +49,7 @@
    1.26  	for(i = 0; i < len; i++)
    1.27  		if((keysym == key[i].keysym) && (key[i].mod == ev->state)) {
    1.28  			if(key[i].func)
    1.29 -				key[i].func(key[i].arg);
    1.30 +				key[i].func(key[i].aux);
    1.31  			return;
    1.32  		}
    1.33  }