summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-02-11 15:35:34 +0100
committerbakkeby <[email protected]>2020-02-11 15:35:34 +0100
commit9ef44a0bc1462bca87226f31d6d0c999465a86c2 (patch)
tree972761f17fb3d35f9510b7cb27d161ceb0eed922
parent90a848d608cb9370c8a03980edda587c463451c5 (diff)
downloaddwm-flexipatch-9ef44a0bc1462bca87226f31d6d0c999465a86c2.tar.gz
dwm-flexipatch-9ef44a0bc1462bca87226f31d6d0c999465a86c2.zip
Config definition fix for swaptags
-rw-r--r--config.def.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/config.def.h b/config.def.h
index 99005f2..21a698f 100644
--- a/config.def.h
+++ b/config.def.h
@@ -509,21 +509,33 @@ static const Layout layouts[] = {
/* key definitions */
#define MODKEY Mod1Mask
-#if COMBO_PATCH
+#if COMBO_PATCH && SWAPTAGS_PATCH
#define TAGKEYS(KEY,TAG) \
{ MODKEY, KEY, comboview, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
{ MODKEY|ShiftMask, KEY, combotag, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} }, \
{ MODKEY|Mod4Mask|ShiftMask, KEY, swaptags, {.ui = 1 << TAG} },
-#else
+#elif COMBO_PATCH
+#define TAGKEYS(KEY,TAG) \
+ { MODKEY, KEY, comboview, {.ui = 1 << TAG} }, \
+ { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
+ { MODKEY|ShiftMask, KEY, combotag, {.ui = 1 << TAG} }, \
+ { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
+#elif SWAPTAGS_PATCH
#define TAGKEYS(KEY,TAG) \
{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
{ MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} }, \
{ MODKEY|Mod4Mask|ShiftMask, KEY, swaptags, {.ui = 1 << TAG} },
-#endif // COMBO_PATCH
+#else
+#define TAGKEYS(KEY,TAG) \
+ { MODKEY, KEY, view, {.ui = 1 << TAG} }, \
+ { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
+ { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
+ { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
+#endif // COMBO_PATCH / SWAPTAGS_PATCH
#if HOLDBAR_PATCH
#define HOLDKEY 0 // replace 0 with the keysym to activate holdbar