Structure of a Keymap YAML file
mainA keymap representation used by keymap draw is defined in YAML format. It consists of four primary root fields:
layout: Physical layout specifications (optional if provided via CLI).layers: An ordered mapping of layer names to their key contents.combos: A list of combo specifications (optional).draw_config: Configuration overrides for the drawing process (optional).
Note: If physical layout parameters are provided both in the command line for keymap draw and within the layout section of the YAML, the CLI arguments take precedence.
layout: # physical layout specs, optional if used in CLI
...
layers: # ordered mapping of layer name to contents
layer_1: # list of (lists of) key specs
- [Q, W, ...]
...
layer_2:
...
combos: # list of combo specs, optional
- ...
draw_config: # config overrides for drawing, optional
...