forked from kofal.net/zmk
refactor(keymaps): Rename layer label to "display-name"
Changed the property used to define a layer name for displays from "label" (which affects other things in Zephyr and is deprecated) to "display-name". (It cannot be named simply "name", because that has special meaning in newer versions of the devicetree compiler.) "label" is still supported as a fallback, so no changes need to be made to existing keymaps.
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
compatible = "zmk,keymap";
|
||||
|
||||
default_layer {
|
||||
label = "default";
|
||||
display-name = "default";
|
||||
// ------------------------------------------------------------------------------------------------------------
|
||||
// | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | |
|
||||
// | ESC | Q | W | E | R | T | | Y | U | I | O | P | BKSPC |
|
||||
@@ -49,7 +49,7 @@
|
||||
};
|
||||
|
||||
lower_layer {
|
||||
label = "lower";
|
||||
display-name = "lower";
|
||||
// TODO: Some binds are waiting for shifted keycode support.
|
||||
// ------------------------------------------------------------------------------------------------------------
|
||||
// | | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10 | F11 |
|
||||
@@ -69,7 +69,7 @@
|
||||
};
|
||||
|
||||
raise_layer {
|
||||
label = "raise";
|
||||
display-name = "raise";
|
||||
// ------------------------------------------------------------------------------------------------------------
|
||||
// | BTCLR | BT1 | BT2 | BT3 | BT4 | BT5 | | | | | | | |
|
||||
// | | INS | PSCR | GUI | | | | PGUP | | ^ | | | |
|
||||
@@ -94,7 +94,7 @@
|
||||
// | | RGB_BRD | RGB_BRI | | | | | | | | | | |
|
||||
// | | | | | | | RGB_TOG | | | | | | | | |
|
||||
// | | | | | | | | | | | |
|
||||
label = "adjust";
|
||||
display-name = "adjust";
|
||||
bindings = <
|
||||
&bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &none &none &none &none &none &none
|
||||
&ext_power EP_TOG &rgb_ug RGB_HUD &rgb_ug RGB_HUI &rgb_ug RGB_SAD &rgb_ug RGB_SAI &rgb_ug RGB_EFF &none &none &none &none &none &none
|
||||
|
||||
Reference in New Issue
Block a user