diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2025-05-10 20:30:09 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2025-05-10 20:30:09 +0530 |
commit | 30b203af5d6f35c5f94fb3a65845432cde014347 (patch) | |
tree | 55663a7a3c0737d34403fcca3a64c46dacf8c08a /config.def.h | |
parent | bd7e23dff2c22e1133ec7908f689b9e7b8d5704a (diff) |
patched dwm-focusadjacenttag-6.3.diff
Diffstat (limited to 'config.def.h')
-rw-r--r-- | config.def.h | 16 |
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 */ |