Skip to content

Commit

Permalink
docs: Better document the layer display-name prop.
Browse files Browse the repository at this point in the history
  • Loading branch information
petejohanson committed Oct 16, 2024
1 parent 0adb80c commit d6be903
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/config/keymap.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Each child node can have the following properties:

| Property | Type | Description |
| ----------------- | ------------- | -------------------------------------------------------------------- |
| `display-name` | string | Name for the layer on displays |
| `display-name` | string | Name for the layer in ZMK Studio and on displays |
| `bindings` | phandle-array | List of [key behaviors](../keymaps/index.mdx#behaviors), one per key |
| `sensor-bindings` | phandle-array | List of sensor behaviors, one per sensor |

Expand Down
3 changes: 3 additions & 0 deletions docs/docs/keymap-example.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
compatible = "zmk,keymap";
default_layer { // Layer 0
display-name = "Base";
// ----------------------------------------------
// | Z | M | K |
// | &mo 1 | LEFT SHIFT | &mo 2 |
Expand All @@ -12,6 +13,7 @@
>;
};
abc { // Layer 1
display-name = "ABC";
// ----------------------------------------------
// | A | B | C |
// | &trans | &trans | &trans |
Expand All @@ -21,6 +23,7 @@
>;
};
xyz { // Layer 2
display-name = "XYZ";
// ----------------------------------------------
// | X | Y | Z |
// | LEFT CTRL | LEFT ALT | &trans |
Expand Down

0 comments on commit d6be903

Please sign in to comment.