about summary refs log tree commit diff
path: root/config.h
diff options
context:
space:
mode:
authorManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-06-10 16:45:56 +0200
committerManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-06-10 16:45:56 +0200
commit8e4ab04fa40ba71391ab4b3abb90b94f36cb816f (patch)
treedcd08f02d5bdb7019b8be693e869e9356e1a9e21 /config.h
parentAdded separators in the status script (diff)
downloaddwm-8e4ab04fa40ba71391ab4b3abb90b94f36cb816f.tar.gz
dwm-8e4ab04fa40ba71391ab4b3abb90b94f36cb816f.tar.bz2
dwm-8e4ab04fa40ba71391ab4b3abb90b94f36cb816f.zip
Added movestack [Patch]
Diffstat (limited to 'config.h')
-rw-r--r--config.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/config.h b/config.h
index 11c1420..725321e 100644
--- a/config.h
+++ b/config.h
@@ -67,11 +67,14 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn()
 static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
 static const char *termcmd[]  = { "st", NULL };
 
+#include "movestack.c"
 static Key keys[] = {
 	/* modifier                     key        function        argument */
 	{ MODKEY,                       XK_b,      togglebar,      {0} },
-	{ MODKEY,                       XK_j,      focusstack,     {.i = +1 } },
-	{ MODKEY,                       XK_k,      focusstack,     {.i = -1 } },
+	{ MODKEY,                       XK_j,		   focusstack,		 {.i = +1 } },
+	{ MODKEY,                       XK_k,		   focusstack,		 {.i = -1 } },
+	{ MODKEY|ShiftMask,             XK_j,		   movestack,	  	 {.i = +1 } },
+	{ MODKEY|ShiftMask,             XK_k,		   movestack,	     {.i = -1 } },
 	{ MODKEY,                       XK_i,      incnmaster,     {.i = +1 } },
 	{ MODKEY,                       XK_d,      incnmaster,     {.i = -1 } },
 	{ MODKEY,                       XK_h,      setmfact,       {.f = -0.05} },