dwm-meillo

diff config.arg.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 243bf6783c7c
children 118d3e010e5e
line diff
     1.1 --- a/config.arg.h	Fri Aug 11 18:37:41 2006 +0200
     1.2 +++ b/config.arg.h	Fri Aug 11 19:26:12 2006 +0200
     1.3 @@ -18,31 +18,34 @@
     1.4  
     1.5  #define KEYS \
     1.6  static Key key[] = { \
     1.7 -	/* modifier		key		function	arguments */ \
     1.8 -	{ MODKEY,		XK_1,		view,		{ .i = 0 } }, \
     1.9 -	{ MODKEY,		XK_2,		view,		{ .i = 1 } }, \
    1.10 -	{ MODKEY,		XK_3,		view,		{ .i = 2 } }, \
    1.11 -	{ MODKEY,		XK_h,		viewprev,	{ 0 } }, \
    1.12 -	{ MODKEY,		XK_j,		focusnext,	{ 0 } }, \
    1.13 -	{ MODKEY,		XK_k,		focusprev,	{ 0 } }, \
    1.14 -	{ MODKEY,		XK_l,		viewnext,	{ 0 } }, \
    1.15 -	{ MODKEY,		XK_m,		togglemax,	{ 0 } }, \
    1.16 -	{ MODKEY,		XK_p,		spawn, \
    1.17 +	/* modifier			key		function	arguments */ \
    1.18 +	{ MODKEY,			XK_1,		view,		{ .i = 0 } }, \
    1.19 +	{ MODKEY,			XK_2,		view,		{ .i = 1 } }, \
    1.20 +	{ MODKEY,			XK_3,		view,		{ .i = 2 } }, \
    1.21 +	{ MODKEY,			XK_h,		viewprev,	{ 0 } }, \
    1.22 +	{ MODKEY,			XK_j,		focusnext,	{ 0 } }, \
    1.23 +	{ MODKEY,			XK_k,		focusprev,	{ 0 } }, \
    1.24 +	{ MODKEY,			XK_l,		viewnext,	{ 0 } }, \
    1.25 +	{ MODKEY,			XK_m,		togglemax,	{ 0 } }, \
    1.26 +	{ MODKEY,			XK_p,		spawn, \
    1.27  		{ .cmd = "exec `ls -lL /usr/bin /usr/local/bin 2>/dev/null | " \
    1.28  			"awk 'NF>2 && $1 ~ /^[^d].*x/ {print $NF}' | sort | uniq | dmenu`" } }, \
    1.29 -	{ MODKEY,		XK_space,	togglemode,	{ 0 } }, \
    1.30 -	{ MODKEY,		XK_Return,	zoom,		{ 0 } }, \
    1.31 -	{ MODKEY|ControlMask,	XK_1,		appendtag,	{ .i = 0 } }, \
    1.32 -	{ MODKEY|ControlMask,	XK_2,		appendtag,	{ .i = 1 } }, \
    1.33 -	{ MODKEY|ControlMask,	XK_3,		appendtag,	{ .i = 2 } }, \
    1.34 -	{ MODKEY|ShiftMask,	XK_1,		replacetag,	{ .i = 0 } }, \
    1.35 -	{ MODKEY|ShiftMask,	XK_2,		replacetag,	{ .i = 1 } }, \
    1.36 -	{ MODKEY|ShiftMask,	XK_3,		replacetag,	{ .i = 2 } }, \
    1.37 -	{ MODKEY|ShiftMask,	XK_c,		killclient,	{ 0 } }, \
    1.38 -	{ MODKEY|ShiftMask,	XK_q,		quit,		{ 0 } }, \
    1.39 -	{ MODKEY|ShiftMask,	XK_Return,	spawn, \
    1.40 +	{ MODKEY,			XK_space,	togglemode,	{ 0 } }, \
    1.41 +	{ MODKEY,			XK_Return,	zoom,		{ 0 } }, \
    1.42 +	{ MODKEY|ControlMask,		XK_1,		appendtag,	{ .i = 0 } }, \
    1.43 +	{ MODKEY|ControlMask,		XK_2,		appendtag,	{ .i = 1 } }, \
    1.44 +	{ MODKEY|ControlMask,		XK_3,		appendtag,	{ .i = 2 } }, \
    1.45 +	{ MODKEY|ShiftMask,		XK_1,		replacetag,	{ .i = 0 } }, \
    1.46 +	{ MODKEY|ShiftMask,		XK_2,		replacetag,	{ .i = 1 } }, \
    1.47 +	{ MODKEY|ShiftMask,		XK_3,		replacetag,	{ .i = 2 } }, \
    1.48 +	{ MODKEY|ShiftMask,		XK_c,		killclient,	{ 0 } }, \
    1.49 +	{ MODKEY|ShiftMask,		XK_q,		quit,		{ 0 } }, \
    1.50 +	{ MODKEY|ShiftMask,		XK_Return,	spawn, \
    1.51  		{ .cmd = "exec urxvt +sb -tr -bg black -fg '#eeeeee' -cr '#eeeeee' +sb " \
    1.52  			"-fn '-*-terminus-medium-*-*-*-12-*-*-*-*-*-iso10646-*'" } }, \
    1.53 +	{ MODKEY|ControlMask|ShiftMask,	XK_1,		viewextend,	{ .i = 0 } }, \
    1.54 +	{ MODKEY|ShiftMask,		XK_2,		viewextend,	{ .i = 1 } }, \
    1.55 +	{ MODKEY|ShiftMask,		XK_3,		viewextend,	{ .i = 2 } }, \
    1.56  };
    1.57  
    1.58  #define RULES \