diff options
author | Devin J. Pohly <djpohly@gmail.com> | 2020-04-23 00:47:15 -0500 |
---|---|---|
committer | Devin J. Pohly <djpohly@gmail.com> | 2020-04-23 00:47:15 -0500 |
commit | 623867a367ba8c3ee9ac1582015dcf1d6991a78f (patch) | |
tree | 52a7c2ec1b80616a06383ccd2e4e528fedfd67e5 /config.def.h | |
parent | 59b09576b934c8837a90312fc8e7723640733172 (diff) |
turn focusnext into dwm's focusstack
Diffstat (limited to 'config.def.h')
-rw-r--r-- | config.def.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/config.def.h b/config.def.h index ede6f72..6eb617b 100644 --- a/config.def.h +++ b/config.def.h @@ -32,11 +32,13 @@ static const struct xkb_rule_names xkb_rules = { static const char *termcmd[] = { "kitty", "-o", "linux_display_server=wayland", NULL }; static const Key keys[] = { - { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_Return, spawn, {.v = termcmd } }, - { MODKEY, XKB_KEY_j, focusnext, {0} }, - { MODKEY, XKB_KEY_t, setlayout, {.v = &layouts[0]} }, - { MODKEY, XKB_KEY_f, setlayout, {.v = &layouts[1]} }, - { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_Q, quit, {0} }, + /* modifier key function argument */ + { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_Return, spawn, {.v = termcmd } }, + { MODKEY, XKB_KEY_j, focusstack, {.i = +1} }, + { MODKEY, XKB_KEY_k, focusstack, {.i = -1} }, + { MODKEY, XKB_KEY_t, setlayout, {.v = &layouts[0]} }, + { MODKEY, XKB_KEY_f, setlayout, {.v = &layouts[1]} }, + { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_Q, quit, {0} }, }; static const Button buttons[] = { |