diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2024-07-22 23:42:31 -0400 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2024-07-22 23:42:31 -0400 |
commit | 52dbf2ca1507269447c4716502e313788b66135b (patch) | |
tree | b03a8463dc2d4d291d91687a34bd041453ebfb11 /config.def.h | |
parent | bd59573f07f27fff7870a1e1a70e72493bb42453 (diff) |
Implement togglekblayoutandoptions patch
https://codeberg.org/dwl/dwl-patches/src/branch/main/patches/togglekblayoutandoptions
Diffstat (limited to 'config.def.h')
-rw-r--r-- | config.def.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/config.def.h b/config.def.h index 22d2171..1f00009 100644 --- a/config.def.h +++ b/config.def.h @@ -52,12 +52,15 @@ 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" + }, + /*{ + .layout = "us", + .variant = "dvp", + .options = "compose:102,numpad:shift3,kpdl:semi,keypad:atm,caps:super" + }*/ }; static const int repeat_rate = 25; @@ -148,6 +151,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|WLR_MODIFIER_SHIFT, XKB_KEY_A, incxkbrules, {.i = +1} }, TAGKEYS( XKB_KEY_1, XKB_KEY_exclam, 0), TAGKEYS( XKB_KEY_2, XKB_KEY_at, 1), TAGKEYS( XKB_KEY_3, XKB_KEY_numbersign, 2), |