about summary refs log tree commit diff stats
path: root/config.def.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index c954087..b8f0908 100644
--- a/config.def.h
+++ b/config.def.h
@@ -58,6 +58,7 @@ static const char *dmenucmd[] = { "rofi", "-show", "drun", "-show-icons", NULL }
 static const char *termcmd[]  = { "st", NULL };
 
 #include <X11/XF86keysym.h>
+#include "movestack.c"
 static const Key keys[] = {
 	/* modifier                     key        function        argument */
 	{ MODKEY,                       XK_space,      spawn,          {.v = dmenucmd } },
@@ -118,6 +119,11 @@ static const Key keys[] = {
 	{ 0,			XF86XK_AudioNext,	spawn,	SHCMD("playerctl next") },
 		/* misc */
 	{ 0,			XF86XK_TouchpadToggle,	spawn,	SHCMD("tp-toggle") },
+		/* movestack patch */
+	{ MODKEY|ShiftMask,		XK_j,		movestack,	{.i = +1 } }, /* vim keys */
+	{ MODKEY|ShiftMask,		XK_k,		movestack,	{.i = -1 } },
+	{ MODKEY|ShiftMask,		XK_Down,	movestack,	{.i = +1 } }, /* arrow keys */
+	{ MODKEY|ShiftMask,		XK_Up,		movestack,	{.i = -1 } },
 };
 
 /* button definitions */