diff options
author | awy <awy@tutamail.com> | 2024-08-25 16:32:55 +0300 |
---|---|---|
committer | awy <awy@tutamail.com> | 2024-08-25 16:32:55 +0300 |
commit | 406ad50dd681765e3f0cce85bcf5e1f8268c9149 (patch) | |
tree | a4ef45338e045371ac8300a7a05f5926e72af602 /config.def.h | |
parent | 6b2aaedbcffff422b239f858ff21c03dc3a7d67d (diff) |
xkb-rules-switcher patch
Diffstat (limited to 'config.def.h')
-rw-r--r-- | config.def.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/config.def.h b/config.def.h index bb95669..2258fdf 100644 --- a/config.def.h +++ b/config.def.h @@ -65,12 +65,16 @@ static const MonitorRule monrules[] = { }; /* keyboard */ -static const struct xkb_rule_names xkb_rules = { - /* can specify fields: rules, model, layout, variant, options */ - /* example: - .options = "ctrl:nocaps", - */ - .options = NULL, +static const struct xkb_rule_names xkb_rules[] = { + { + /* can specify fields: rules, model, layout, variant, options */ + .layout = "us", + .options = NULL, + }, + { + .layout = "ru", + .options = NULL, + }, }; static const int repeat_rate = 25; @@ -178,6 +182,7 @@ static const Key keys[] = { { 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} }, + { MODKEY, XKB_KEY_w, switchxkbrule, {0} }, TAGKEYS( XKB_KEY_1, XKB_KEY_exclam, 0), TAGKEYS( XKB_KEY_2, XKB_KEY_at, 1), TAGKEYS( XKB_KEY_3, XKB_KEY_numbersign, 2), |