dwm-meillo

diff config.default.h @ 262:d659a2dce2b5

implemented viewextend and added M-S-C-n shortcuts for extending the current view... updated man page (works great!) nice feature
author Anselm R.Garbe <arg@10ksloc.org>
date Fri, 11 Aug 2006 19:26:12 +0200
parents 7f8f7f14e9cd
children 118d3e010e5e
line diff
     1.1 --- a/config.default.h	Fri Aug 11 18:37:41 2006 +0200
     1.2 +++ b/config.default.h	Fri Aug 11 19:26:12 2006 +0200
     1.3 @@ -18,32 +18,37 @@
     1.4  
     1.5  #define KEYS \
     1.6  static Key key[] = { \
     1.7 -	/* modifier		key		function	arguments */ \
     1.8 -	{ MODKEY,		XK_0,		view,		{ .i = 0 } }, \
     1.9 -	{ MODKEY,		XK_1,		view,		{ .i = 1 } }, \
    1.10 -	{ MODKEY,		XK_2,		view,		{ .i = 2 } }, \
    1.11 -	{ MODKEY,		XK_3,		view,		{ .i = 3 } }, \
    1.12 -	{ MODKEY,		XK_4,		view,		{ .i = 4 } }, \
    1.13 -	{ MODKEY,		XK_h,		viewprev,	{ 0 } }, \
    1.14 -	{ MODKEY,		XK_j,		focusnext,	{ 0 } }, \
    1.15 -	{ MODKEY,		XK_k,		focusprev,	{ 0 } }, \
    1.16 -	{ MODKEY,		XK_l,		viewnext,	{ 0 } }, \
    1.17 -	{ MODKEY,		XK_m,		togglemax,	{ 0 } }, \
    1.18 -	{ MODKEY,		XK_space,	togglemode,	{ 0 } }, \
    1.19 -	{ MODKEY,		XK_Return,	zoom,		{ 0 } }, \
    1.20 -	{ MODKEY|ControlMask,	XK_0,		appendtag,	{ .i = 0 } }, \
    1.21 -	{ MODKEY|ControlMask,	XK_1,		appendtag,	{ .i = 1 } }, \
    1.22 -	{ MODKEY|ControlMask,	XK_2,		appendtag,	{ .i = 2 } }, \
    1.23 -	{ MODKEY|ControlMask,	XK_3,		appendtag,	{ .i = 3 } }, \
    1.24 -	{ MODKEY|ControlMask,	XK_4,		appendtag,	{ .i = 4 } }, \
    1.25 -	{ MODKEY|ShiftMask,	XK_0,		replacetag,	{ .i = 0 } }, \
    1.26 -	{ MODKEY|ShiftMask,	XK_1,		replacetag,	{ .i = 1 } }, \
    1.27 -	{ MODKEY|ShiftMask,	XK_2,		replacetag,	{ .i = 2 } }, \
    1.28 -	{ MODKEY|ShiftMask,	XK_3,		replacetag,	{ .i = 3 } }, \
    1.29 -	{ MODKEY|ShiftMask,	XK_4,		replacetag,	{ .i = 4 } }, \
    1.30 -	{ MODKEY|ShiftMask,	XK_c,		killclient,	{ 0 } }, \
    1.31 -	{ MODKEY|ShiftMask,	XK_q,		quit,		{ 0 } }, \
    1.32 -	{ MODKEY|ShiftMask,	XK_Return,	spawn,		{ .cmd = "exec xterm" } }, \
    1.33 +	/* modifier			key		function	arguments */ \
    1.34 +	{ MODKEY,			XK_0,		view,		{ .i = 0 } }, \
    1.35 +	{ MODKEY,			XK_1,		view,		{ .i = 1 } }, \
    1.36 +	{ MODKEY,			XK_2,		view,		{ .i = 2 } }, \
    1.37 +	{ MODKEY,			XK_3,		view,		{ .i = 3 } }, \
    1.38 +	{ MODKEY,			XK_4,		view,		{ .i = 4 } }, \
    1.39 +	{ MODKEY,			XK_h,		viewprev,	{ 0 } }, \
    1.40 +	{ MODKEY,			XK_j,		focusnext,	{ 0 } }, \
    1.41 +	{ MODKEY,			XK_k,		focusprev,	{ 0 } }, \
    1.42 +	{ MODKEY,			XK_l,		viewnext,	{ 0 } }, \
    1.43 +	{ MODKEY,			XK_m,		togglemax,	{ 0 } }, \
    1.44 +	{ MODKEY,			XK_space,	togglemode,	{ 0 } }, \
    1.45 +	{ MODKEY,			XK_Return,	zoom,		{ 0 } }, \
    1.46 +	{ MODKEY|ControlMask,		XK_0,		appendtag,	{ .i = 0 } }, \
    1.47 +	{ MODKEY|ControlMask,		XK_1,		appendtag,	{ .i = 1 } }, \
    1.48 +	{ MODKEY|ControlMask,		XK_2,		appendtag,	{ .i = 2 } }, \
    1.49 +	{ MODKEY|ControlMask,		XK_3,		appendtag,	{ .i = 3 } }, \
    1.50 +	{ MODKEY|ControlMask,		XK_4,		appendtag,	{ .i = 4 } }, \
    1.51 +	{ MODKEY|ShiftMask,		XK_0,		replacetag,	{ .i = 0 } }, \
    1.52 +	{ MODKEY|ShiftMask,		XK_1,		replacetag,	{ .i = 1 } }, \
    1.53 +	{ MODKEY|ShiftMask,		XK_2,		replacetag,	{ .i = 2 } }, \
    1.54 +	{ MODKEY|ShiftMask,		XK_3,		replacetag,	{ .i = 3 } }, \
    1.55 +	{ MODKEY|ShiftMask,		XK_4,		replacetag,	{ .i = 4 } }, \
    1.56 +	{ MODKEY|ShiftMask,		XK_c,		killclient,	{ 0 } }, \
    1.57 +	{ MODKEY|ShiftMask,		XK_q,		quit,		{ 0 } }, \
    1.58 +	{ MODKEY|ShiftMask,		XK_Return,	spawn,		{ .cmd = "exec xterm" } }, \
    1.59 +	{ MODKEY|ControlMask|ShiftMask,	XK_0,		viewextend,	{ .i = 0 } }, \
    1.60 +	{ MODKEY|ControlMask|ShiftMask,	XK_1,		viewextend,	{ .i = 1 } }, \
    1.61 +	{ MODKEY|ControlMask|ShiftMask,	XK_2,		viewextend,	{ .i = 2 } }, \
    1.62 +	{ MODKEY|ControlMask|ShiftMask,	XK_3,		viewextend,	{ .i = 3 } }, \
    1.63 +	{ MODKEY|ControlMask|ShiftMask,	XK_4,		viewextend,	{ .i = 4 } }, \
    1.64  };
    1.65  
    1.66  #define RULES \