numbers not numpad
This commit is contained in:
parent
ba214a7a4d
commit
0d9b137570
2 changed files with 42 additions and 23 deletions
21
config/ninepad.json
Normal file
21
config/ninepad.json
Normal 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": []
|
||||
}
|
||||
|
|
@ -1,30 +1,28 @@
|
|||
#include <behaviors.dtsi>
|
||||
#include <dt-bindings/zmk/keys.h>
|
||||
#include <dt-bindings/zmk/bt.h>
|
||||
#include <dt-bindings/zmk/keys.h>
|
||||
|
||||
/ {
|
||||
keymap {
|
||||
compatible = "zmk,keymap";
|
||||
label = "ninepad";
|
||||
|
||||
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
|
||||
|
||||
>;
|
||||
};
|
||||
|
||||
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
|
||||
>;
|
||||
};
|
||||
keymap {
|
||||
compatible = "zmk,keymap";
|
||||
label = "ninepad";
|
||||
|
||||
default_layer {
|
||||
label = "Default";
|
||||
bindings = <
|
||||
&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
|
||||
>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue