Skip to content

Commit f94a0b6

Browse files
committed
config: Clean up use of deprecated label property
1 parent 53c8aea commit f94a0b6

File tree

5 files changed

+13
-14
lines changed

5 files changed

+13
-14
lines changed

config/dts/behaviors/lvgl_key_press.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
behaviors {
88
/omit-if-no-ref/ lvkp: behavior_lvgl_key_press {
99
compatible = "zmk,behavior-lvgl-key-press";
10-
label = "LV_KEY_PRESS";
1110
#binding-cells = <1>;
11+
display-name = "LVGL Key Press";
1212
};
1313
};
1414
};

config/dts/behaviors/mouse_wheel.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
behaviors {
88
/omit-if-no-ref/ mw: behavior_mouse_wheel {
99
compatible = "zmk,behavior-mouse-wheel";
10-
label = "MOUSE_WHEEL";
1110
#binding-cells = <1>;
11+
display-name = "Mouse Wheel";
1212
};
1313
};
1414
};

config/dts/behaviors/sensor_rotate_mouse_wheel.dtsi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
behaviors {
1010
/omit-if-no-ref/ inc_dec_mw: behavior_sensor_rotate_mouse_wheel {
1111
compatible = "zmk,behavior-sensor-rotate-var";
12-
label = "ENC_MOUSE_WHEEL";
1312
#sensor-binding-cells = <2>;
1413
bindings = <&mw>, <&mw>;
1514
};

config/hw75_dynamic.keymap

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,29 @@
1414
/ {
1515
macros {
1616
tasks_forward: tasks-forward {
17-
label = "TAKS_FORWARD";
1817
compatible = "zmk,behavior-macro";
1918
#binding-cells = <0>;
2019
bindings = <&macro_press &kp LALT>,
2120
<&macro_tap &kp TAB>,
2221
<&macro_release &kp LALT>;
22+
display-name = "Tasks Forward";
2323
};
2424

2525
tasks_backward: tasks-backward {
26-
label = "TAKS_BACKWARD";
2726
compatible = "zmk,behavior-macro";
2827
#binding-cells = <0>;
2928
bindings = <&macro_press &kp LALT>,
3029
<&macro_press &kp LSHIFT>,
3130
<&macro_tap &kp TAB>,
3231
<&macro_release &kp LSHIFT>,
3332
<&macro_release &kp LALT>;
33+
display-name = "Tasks Backward";
3434
};
3535
};
3636

3737
behaviors {
3838
switch_tasks: switch-tasks {
3939
compatible = "zmk,behavior-sensor-rotate";
40-
label = "SWITCH_TASKS";
4140
#sensor-binding-cells = <0>;
4241
bindings = <&tasks_forward>, <&tasks_backward>;
4342
};
@@ -47,36 +46,36 @@
4746
compatible = "zmk,keymap-ext", "zmk,keymap";
4847

4948
volume {
50-
label = "音量";
49+
display-name = "音量";
5150
icon = [EF 86 AE];
5251
bindings = <&lvkp LV_KEY_PREV &lvkp LV_KEY_NEXT>;
5352
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>;
5453
};
5554

5655
scroll {
57-
label = "滚动";
56+
display-name = "滚动";
5857
icon = [EF 86 8A];
5958
bindings = <&trans &trans>;
6059
sensor-bindings = <&inc_dec_mw MW_DN(1) MW_UP(1)>;
6160
};
6261

6362
tasks {
64-
label = "窗口";
63+
display-name = "窗口";
6564
icon = [EF 85 9E];
6665
bindings = <&trans &trans>;
6766
sensor-bindings = <&switch_tasks>;
6867
profile = <&profile_spring>;
6968
};
7069

7170
arrow_vertical {
72-
label = "上下";
71+
display-name = "上下";
7372
icon = [EF 86 93];
7473
bindings = <&trans &trans>;
7574
sensor-bindings = <&inc_dec_kp UP DOWN>;
7675
};
7776

7877
arrow_horizontal {
79-
label = "左右";
78+
display-name = "左右";
8079
icon = [EF 86 9C];
8180
bindings = <&trans &trans>;
8281
sensor-bindings = <&inc_dec_kp LEFT RIGHT>;

config/hw75_keyboard.keymap

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@
1818
/ {
1919
keymap {
2020
compatible = "zmk,keymap";
21+
2122
base {
22-
label = "BASE";
23+
display-name = "BASE";
2324
bindings = <
2425
&kp ESC &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12 &kp PAUSE_BREAK
2526
&kp GRAVE &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp MINUS &kp EQUAL &kp BSPC &kp INSERT
@@ -32,7 +33,7 @@
3233
};
3334

3435
fn {
35-
label = "FN";
36+
display-name = "FN";
3637
bindings = <
3738
&trans &kp C_BRI_DEC &kp C_BRI_INC &none &none &none &none &kp C_PREV &kp C_PP &kp C_NEXT &kp C_MUTE &kp C_VOL_DN &kp C_VOL_UP &trans
3839
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
@@ -45,7 +46,7 @@
4546
};
4647

4748
touch {
48-
label = "Touch";
49+
display-name = "Touch";
4950
bindings = <
5051
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
5152
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans

0 commit comments

Comments
 (0)