summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorChris Sobczak <chris@sobczak.family>2026-06-26 20:31:23 -0700
committerChris Sobczak <chris@sobczak.family>2026-06-26 20:31:23 -0700
commit1ea0c20cbed805445e8153659f6d11f4e8a4a227 (patch)
treec277368f46da504433ea0c3c588f1c721f0e1661 /config.def.h
parent32fb3dce58a26c6126d2be96a0b526673ed9132c (diff)
parent8cd908a0a3fca2f870ed53f0b9a1ff79752f5a8d (diff)
Merge branch 'shiftview' into csobczak
Add shiftview functionality to csobczak dwl
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index 0a6305c..9fcb9d5 100644
--- a/config.def.h
+++ b/config.def.h
@@ -136,6 +136,8 @@ static const char *menucmd[] = { "wmenu-run", NULL };
static const char *webcmd[] = { "web", NULL };
static const char *radarcmd[] = { "radar", NULL };
+#include "shiftview.c"
+
static const Key keys[] = {
/* Note that Shift changes certain key codes: 2 -> at, etc. */
/* modifier key function argument */
@@ -155,6 +157,8 @@ static const Key keys[] = {
{ MODKEY, XKB_KEY_l, setmfact, {.f = +0.05f} },
{ MODKEY, XKB_KEY_Return, zoom, {0} },
{ MODKEY, XKB_KEY_Tab, view, {0} },
+ { MODKEY, XKB_KEY_q, shiftview, { .i = -1 } },
+ { MODKEY, XKB_KEY_w, shiftview, { .i = 1 } },
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_c, killclient, {0} },
{ MODKEY, XKB_KEY_t, setlayout, {.v = &layouts[0]} },
{ MODKEY, XKB_KEY_f, setlayout, {.v = &layouts[1]} },