applied xkb-rules-switcher patch
This commit is contained in:
parent
30e30880d9
commit
93642f22d0
4 changed files with 42 additions and 15 deletions
20
config.h
20
config.h
|
@ -20,7 +20,7 @@ static const char *fonts[] = {"inconsolata:size=11"};
|
|||
static const float fullscreen_bg[] = {0.1f, 0.1f, 0.1f, 1.0f}; /* You can also use glsl colors */
|
||||
|
||||
/* tagging - TAGCOUNT must be no greater than 31 */
|
||||
static char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
|
||||
static char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8" };
|
||||
|
||||
/* logging */
|
||||
static int log_level = WLR_ERROR;
|
||||
|
@ -77,13 +77,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",
|
||||
*/
|
||||
.layout = "latam",
|
||||
.options = NULL,
|
||||
static const struct xkb_rule_names xkb_rules[] = {
|
||||
{
|
||||
/* can specify fields: rules, model, layout, variant, options */
|
||||
.layout = "latam",
|
||||
.options = NULL,
|
||||
},
|
||||
{
|
||||
.layout = "us",
|
||||
.options = NULL,
|
||||
},
|
||||
};
|
||||
|
||||
static const int repeat_rate = 25;
|
||||
|
@ -181,6 +184,7 @@ static const Key keys[] = {
|
|||
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_D, incnmaster, {.i = +1} },
|
||||
{ MODKEY|WLR_MODIFIER_CTRL, XKB_KEY_a, setmfact, {.f = -0.05f} },
|
||||
{ MODKEY|WLR_MODIFIER_CTRL, XKB_KEY_d, setmfact, {.f = +0.05f} },
|
||||
{ MODKEY, XKB_KEY_w, switchxkbrule, {0} },
|
||||
/*
|
||||
{ MODKEY, XKB_KEY_h, incgaps, {.i = +1 } },
|
||||
{ MODKEY, XKB_KEY_l, incgaps, {.i = -1 } },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue