summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2021-01-14 20:26:45 -0600
committerGitHub <noreply@github.com>2021-01-14 20:26:45 -0600
commit1d7c756107912cc2340f565e421a1c63c6a22067 (patch)
treeeaf3972dd65ef636cd36ba32ae6d0347f58ac4f0 /config.def.h
parent7fe7be5fb868cb39d3ab6d3f5619a3ad36b48777 (diff)
parent6267593cc2725d13b814fc710b8c8c4ee9ff5599 (diff)
Merge pull request #77 from djpohly/use-output-direction
Determine monitor order spatially
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/config.def.h b/config.def.h
index 982c870..4aefa2b 100644
--- a/config.def.h
+++ b/config.def.h
@@ -32,8 +32,6 @@ static const MonitorRule monrules[] = {
/* example of a HiDPI laptop monitor:
{ "eDP-1", 0.5, 1, 2, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, 0, 0 },
*/
- /* the order in which monitors are defined here affects the order in which
- * focusmon and tagmon cycle trough the monitors */
/* defaults */
{ NULL, 0.55, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, 0, 0 },
};
@@ -87,10 +85,10 @@ static const Key keys[] = {
{ MODKEY, XKB_KEY_e, togglefullscreen, {0} },
{ MODKEY, XKB_KEY_0, view, {.ui = ~0} },
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_parenright, tag, {.ui = ~0} },
- { MODKEY, XKB_KEY_comma, focusmon, {.i = -1} },
- { MODKEY, XKB_KEY_period, focusmon, {.i = +1} },
- { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_less, tagmon, {.i = -1} },
- { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_greater, tagmon, {.i = +1} },
+ { MODKEY, XKB_KEY_comma, focusmon, {.i = WLR_DIRECTION_LEFT} },
+ { MODKEY, XKB_KEY_period, focusmon, {.i = WLR_DIRECTION_RIGHT} },
+ { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_less, tagmon, {.i = WLR_DIRECTION_LEFT} },
+ { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_greater, tagmon, {.i = WLR_DIRECTION_RIGHT} },
TAGKEYS( XKB_KEY_1, XKB_KEY_exclam, 0),
TAGKEYS( XKB_KEY_2, XKB_KEY_at, 1),
TAGKEYS( XKB_KEY_3, XKB_KEY_numbersign, 2),