summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-07-29 00:10:16 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2024-07-29 00:10:16 -0400
commit0c64938fd369bb5269f7796514a20f8e1a6e0896 (patch)
tree7f5dbf4504064ae02f50d9f045ecabd21ee499c0 /config.h
parent45c18a6e254955fd2e659125545f9dff1de894e2 (diff)
Implement togglekblayoutandoptions patch (fixed)
Diffstat (limited to 'config.h')
-rw-r--r--config.h19
1 files changed, 12 insertions, 7 deletions
diff --git a/config.h b/config.h
index c5faa78..28f2265 100644
--- a/config.h
+++ b/config.h
@@ -84,13 +84,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[] = {
+ {
+ .layout = "us"
+ /* .variant = "dvp", */
+ /* .options = "compose:102,numpad:shift3,kpdl:semi,keypad:atm,caps:super" */
+ },
+ {
+ .layout = "ca"
+ },
+ };
static const int repeat_rate = 50;
static const int repeat_delay = 300;
@@ -172,6 +175,8 @@ static const Key keys[] = {
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_plus, incgaps, {.i = +1 } },
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_underscore, togglegaps, {0} },
{ MODKEY, XKB_KEY_equal, defaultgaps, {0} },
+ { WLR_MODIFIER_ALT, XKB_KEY_Return, incxkbrules, {0} },
+ // { WLR_MODIFIER_ALT, XKB_KEY_Return, incxkbrules, {.i = +1} },
// { MODKEY|WLR_MODIFIER_LOGO|WLR_MODIFIER_SHIFT, XKB_KEY_H, incogaps, {.i = +1 } },
// { MODKEY|WLR_MODIFIER_LOGO|WLR_MODIFIER_SHIFT, XKB_KEY_L, incogaps, {.i = -1 } },
// { MODKEY|WLR_MODIFIER_LOGO|WLR_MODIFIER_CTRL, XKB_KEY_h, incigaps, {.i = +1 } },