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:
@@ -25,7 +25,7 @@
|
||||
compatible = "zmk,keymap";
|
||||
|
||||
base {
|
||||
label = "Base";
|
||||
display-name = "Base";
|
||||
bindings = <
|
||||
&kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P
|
||||
&kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI
|
||||
@@ -35,7 +35,7 @@
|
||||
};
|
||||
|
||||
lower {
|
||||
label = "Lower";
|
||||
display-name = "Lower";
|
||||
bindings = <
|
||||
&kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp ASTRK &kp LPAR &kp RPAR
|
||||
&trans &kp TILDE &kp DQT &kp PIPE &trans &trans &kp UNDER &kp PLUS &kp LBRC &kp RBRC
|
||||
@@ -45,7 +45,7 @@
|
||||
};
|
||||
|
||||
upper {
|
||||
label = "Upper";
|
||||
display-name = "Upper";
|
||||
bindings = <
|
||||
&kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0
|
||||
&trans &kp GRAVE &kp SQT &kp BSLH &trans &trans &kp MINUS &kp EQUAL &kp LBKT &kp RBKT
|
||||
@@ -55,7 +55,7 @@
|
||||
};
|
||||
|
||||
function {
|
||||
label = "Function";
|
||||
display-name = "Function";
|
||||
bindings = <
|
||||
&kp TAB &trans &kp C_VOL_UP &trans &trans &trans &trans &trans &trans &kp ENTER
|
||||
&kp ESC &kp C_BRI_DN &kp C_VOL_DN &kp C_BRI_UP &trans &trans &kp LEFT &kp DOWN &kp UP &kp RIGHT
|
||||
@@ -65,7 +65,7 @@
|
||||
};
|
||||
|
||||
meta {
|
||||
label = "Meta";
|
||||
display-name = "Meta";
|
||||
bindings = <
|
||||
&rgb_ug RGB_HUI &rgb_ug RGB_SAI &rgb_ug RGB_BRI &rgb_ug RGB_SPI &rgb_ug RGB_EFF &none &none &none &none &none
|
||||
&rgb_ug RGB_HUD &rgb_ug RGB_SAD &rgb_ug RGB_BRD &rgb_ug RGB_SPD &rgb_ug RGB_EFR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4
|
||||
|
||||
Reference in New Issue
Block a user