aboutsummaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index 15dde7c..604be99 100644
--- a/config.def.h
+++ b/config.def.h
@@ -55,6 +55,16 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn()
static const char *dmenucmd[] = { "dmenu_run", NULL };
static const char *termcmd[] = { "open_terminal", NULL };
+void shiftAndViewLeft(const Arg *arg) {
+ tagtoleft(arg);
+ viewtoleft(arg);
+}
+
+void shiftAndViewRight(const Arg *arg) {
+ tagtoright(arg);
+ viewtoright(arg);
+}
+
static const Key keys[] = {
/* modifier key function argument */
@@ -88,6 +98,12 @@ static const Key keys[] = {
// { MODKEY, XK_0, view, {.ui = ~0 } },
// { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
+ /* viewing and moving to adjacent tags */
+ { MODKEY, XK_h, viewtoleft, {0} },
+ { MODKEY, XK_l, viewtoright, {0} },
+ { MODKEY|ShiftMask, XK_h, shiftAndViewLeft, {0} },
+ { MODKEY|ShiftMask, XK_l, shiftAndViewRight, {0} },
+
/* multi monitor stuff */
/* TODO: have bindings to move and focus at the same time */