Skip to content

Allow keycodes in layers in addition to modifiers#1140

Open
insel-maz wants to merge 1 commit intorvaiya:masterfrom
insel-maz:modset-and-keycodes
Open

Allow keycodes in layers in addition to modifiers#1140
insel-maz wants to merge 1 commit intorvaiya:masterfrom
insel-maz:modset-and-keycodes

Conversation

@insel-maz
Copy link
Copy Markdown

Another approach to solving #926.

This change adds the ability to use regular key names in addition to modifiers for layers.

Example: Toggles W or Shift+W when holding down the right control key:

[ids]
*

[main]
rightcontrol = layer(ctrl_layer)

[ctrl_layer]
w = toggle(key_w)

[ctrl_layer+shift]
w = toggle(key_shift_w)

[key_w:w]

[key_shift_w:S-w]

It is even possible to use multiple key names, e.g. S-w-a.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant