About modifiers and layers #81
-
I'm trying to understand how layers work in the keyboard_layout_optimizer. This is what I've got this far (might be correct or incorrect):
base_layout:
keys:
# Row 1
- - ["x", "X", "ſ", "−", "ξ", "Ξ"]
- ["v", "V", "…", "⇞", "", "√"]
- ["l", "L", "_", "⌫", "λ", "Λ"] The keys that lead to the layers are set in the keyboard config yaml,
Then, the type can be either "hold", "one_shot" or "long_press", and the value should be a list of positions defined in the Then, more questions:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Yes, exactly. And the symbols that you specify on the commandline are those from the first items of these lists for which the
Yes. Alternatively to specifying positions from
The difference between these types manifests when the higher layer symbols are broken down into multiple base layer keypresses (if Each of these modifier usages can have their own cost associated to them with the
No, the evaluator makes the assumption that higher-layer symbols on a key on the one hand will be modified with a modifier on the other hand. So if a key is hit with the left hand, the modifier under
This parameter is only used when the "grouped layout generator" is used via the The
Yes, by using the |
Beta Was this translation helpful? Give feedback.
Yes, exactly. And the symbols that you specify on the commandline are those from the first items of these lists for which the
fixed_keys
arefalse
.