Skip to content

Commit 0afed46

Browse files
committed
add number layer
1 parent 1e2842a commit 0afed46

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

config/corne.keymap

+18-1
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,18 @@
121121
};
122122
};
123123

124+
conditional_layers {
125+
compatible = "zmk,conditional-layers";
126+
tri_layer {
127+
if-layers = <1 2>;
128+
then-layer = <3>;
129+
};
130+
};
131+
124132
macros {
125133
delete_word: delete_word {
126-
label = "ZM_delete_word";
127134
compatible = "zmk,behavior-macro";
135+
label = "ZM_delete_word";
128136
#binding-cells = <0>;
129137
bindings
130138
= <&macro_press &kp LSHFT>
@@ -165,6 +173,15 @@
165173
&htl LOWER DEFAULT &kp LCMD &kp SPACE &kp RIGHT_CONTROL &hm RALT DEL &htl RAISE LOWER
166174
>;
167175
};
176+
177+
tri_layer {
178+
bindings = <
179+
&kp ESC &none &none &none &none &none &none &kp N7 &kp N8 &kp N9 &none &kp F11
180+
&kp TAB &none &none &none &none &none &none &kp N4 &kp N5 &kp N6 &none &kp ENTER
181+
&kp LSHFT &none &none &none &none &none &none &kp N1 &kp N2 &kp N3 &none &kp MINUS
182+
&htl LOWER DEFAULT &kp LCMD &kp SPACE &kp RIGHT_CONTROL &hm RALT DEL &htl RAISE LOWER
183+
>;
184+
};
168185
};
169186
};
170187

0 commit comments

Comments
 (0)