aewl

diff event.c @ 84:052fe7498930

ordered variables in structs and source files alphabetically
author Anselm R. Garbe <garbeam@wmii.de>
date Mon, 17 Jul 2006 09:12:29 +0200
parents 8125f908c80c
children c498da7520c7
line diff
     1.1 --- a/event.c	Mon Jul 17 08:37:37 2006 +0200
     1.2 +++ b/event.c	Mon Jul 17 09:12:29 2006 +0200
     1.3 @@ -11,45 +11,44 @@
     1.4  #define ButtonMask      (ButtonPressMask | ButtonReleaseMask)
     1.5  #define MouseMask       (ButtonMask | PointerMotionMask)
     1.6  
     1.7 -/********** CUSTOMIZE **********/
     1.8 -
     1.9 +/* CUSTOMIZE */
    1.10 +const char *browse[] = { "firefox", NULL };
    1.11 +const char *gimp[] = { "gimp", NULL };
    1.12  const char *term[] = { 
    1.13  	"urxvtc", "-tr", "+sb", "-bg", "black", "-fg", "white", "-cr", "white",
    1.14  	"-fn", "-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*", NULL
    1.15  };
    1.16 -const char *browse[] = { "firefox", NULL };
    1.17  const char *xlock[] = { "xlock", NULL };
    1.18  
    1.19  Key key[] = {
    1.20  	/* modifier				key			function	arguments */
    1.21 -	{ Mod1Mask,				XK_Return,	zoom,		{ 0 } },
    1.22 -	{ Mod1Mask,				XK_k,		focusprev,		{ 0 } },
    1.23 -	{ Mod1Mask,				XK_j,		focusnext,		{ 0 } }, 
    1.24 -	{ Mod1Mask,				XK_m,		maximize,		{ 0 } }, 
    1.25 +	{ ControlMask,			XK_0,		appendtag,	{ .i = Tscratch } }, 
    1.26 +	{ ControlMask,			XK_1,		appendtag,	{ .i = Tdev } }, 
    1.27 +	{ ControlMask,			XK_2,		appendtag,	{ .i = Twww } }, 
    1.28 +	{ ControlMask,			XK_3,		appendtag,	{ .i = Twork } }, 
    1.29  	{ Mod1Mask,				XK_0,		view,		{ .i = Tscratch } }, 
    1.30  	{ Mod1Mask,				XK_1,		view,		{ .i = Tdev } }, 
    1.31  	{ Mod1Mask,				XK_2,		view,		{ .i = Twww } }, 
    1.32  	{ Mod1Mask,				XK_3,		view,		{ .i = Twork } }, 
    1.33 +	{ Mod1Mask,				XK_j,		focusnext,		{ 0 } }, 
    1.34 +	{ Mod1Mask,				XK_k,		focusprev,		{ 0 } },
    1.35 +	{ Mod1Mask,				XK_m,		maximize,		{ 0 } }, 
    1.36  	{ Mod1Mask,				XK_space,	dotile,		{ 0 } }, 
    1.37 -	{ Mod1Mask|ShiftMask,	XK_space,	dofloat,	{ 0 } }, 
    1.38 +	{ Mod1Mask,				XK_Return,	zoom,		{ 0 } },
    1.39  	{ Mod1Mask|ShiftMask,	XK_0,		replacetag,		{ .i = Tscratch } }, 
    1.40  	{ Mod1Mask|ShiftMask,	XK_1,		replacetag,		{ .i = Tdev } }, 
    1.41  	{ Mod1Mask|ShiftMask,	XK_2,		replacetag,		{ .i = Twww } }, 
    1.42  	{ Mod1Mask|ShiftMask,	XK_3,		replacetag,		{ .i = Twork } }, 
    1.43  	{ Mod1Mask|ShiftMask,	XK_c,		killclient,		{ 0 } }, 
    1.44 +	{ Mod1Mask|ShiftMask,	XK_g,		spawn,		{ .argv = gimp } },
    1.45 +	{ Mod1Mask|ShiftMask,	XK_l,		spawn,		{ .argv = xlock } },
    1.46  	{ Mod1Mask|ShiftMask,	XK_q,		quit,		{ 0 } },
    1.47 +	{ Mod1Mask|ShiftMask,	XK_space,	dofloat,	{ 0 } }, 
    1.48 +	{ Mod1Mask|ShiftMask,	XK_w,		spawn,		{ .argv = browse } },
    1.49  	{ Mod1Mask|ShiftMask,	XK_Return,	spawn,		{ .argv = term } },
    1.50 -	{ Mod1Mask|ShiftMask,	XK_w,		spawn,		{ .argv = browse } },
    1.51 -	{ Mod1Mask|ShiftMask,	XK_l,		spawn,		{ .argv = xlock } },
    1.52 -	{ ControlMask,			XK_0,		appendtag,	{ .i = Tscratch } }, 
    1.53 -	{ ControlMask,			XK_1,		appendtag,	{ .i = Tdev } }, 
    1.54 -	{ ControlMask,			XK_2,		appendtag,	{ .i = Twww } }, 
    1.55 -	{ ControlMask,			XK_3,		appendtag,	{ .i = Twork } }, 
    1.56  };
    1.57  
    1.58 -/********** CUSTOMIZE **********/
    1.59 -
    1.60 -/* static functions */
    1.61 +/* static */
    1.62  
    1.63  static void
    1.64  movemouse(Client *c)
    1.65 @@ -337,7 +336,7 @@
    1.66  		unmanage(c);
    1.67  }
    1.68  
    1.69 -/* extern functions */
    1.70 +/* extern */
    1.71  
    1.72  void (*handler[LASTEvent]) (XEvent *) = {
    1.73  	[ButtonPress] = buttonpress,