numbers not numpad

This commit is contained in:
keymap-editor[bot] 2024-06-27 01:33:06 +00:00 committed by GitHub
parent ba214a7a4d
commit 0d9b137570
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 42 additions and 23 deletions

21
config/ninepad.json Normal file
View file

@ -0,0 +1,21 @@
{
"layouts": {
"default_layout": {
"name": "default_layout",
"layout": [
{ "row": 0, "col": 0, "x": 0, "y": 0 },
{ "row": 0, "col": 1, "x": 1, "y": 0 },
{ "row": 0, "col": 2, "x": 2, "y": 0 },
{ "row": 1, "col": 0, "x": 0, "y": 1 },
{ "row": 1, "col": 1, "x": 1, "y": 1 },
{ "row": 1, "col": 2, "x": 2, "y": 1 },
{ "row": 2, "col": 0, "x": 0, "y": 2 },
{ "row": 2, "col": 1, "x": 1, "y": 2 },
{ "row": 2, "col": 2, "x": 2, "y": 2 }
]
}
},
"sensors": []
}

View file

@ -1,6 +1,6 @@
#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/keys.h>
/ {
keymap {
@ -10,21 +10,19 @@
default_layer {
label = "Default";
bindings = <
&kp KP_N7 &kp KP_N8 &mo 1
&kp KP_N4 &kp KP_N5 &kp KP_N6
&kp KP_N1 &kp KP_N2 &kp KP_N3
&kp N7 &kp N8 &mo 1
&kp NUMBER_4 &kp N5 &kp KP_N6
&kp NUMBER_1 &kp NUMBER_2 &kp KP_N3
>;
};
bt_layer {
label = "bt";
bindings = <
&none &none &bootloader
&none &none &bt BT_CLR
&bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2
&none &none &bootloader
&none &none &bt BT_CLR
&bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2
>;
};
};
};