Adding in code for jNumpad and pslgh

This commit is contained in:
2023-11-24 09:05:16 +00:00
parent a3f30ee799
commit 9c1f27d103
11 changed files with 312 additions and 0 deletions

View File

@@ -0,0 +1,73 @@
// numpad.keymap
#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/ext_power.h>
/ {
combos {
compatible = "zmk,combos";
combo_ext_pwr {
timeout-ms = <50>;
key-positions = <1 2>;
bindings = <&ext_power EP_TOG>;
};
combo_bt_prv {
timeout-ms = <50>;
key-positions = <1 3>;
bindings = <&bt BT_PRV>;
};
combo_bt_nxt {
timeout-ms = <50>;
key-positions = <1 7>;
bindings = <&bt BT_NXT>;
};
combo_reset {
timeout-ms = <50>;
key-positions = <1 15>;
bindings = <&sys_reset>;
};
combo_btclr {
timeout-ms = <50>;
key-positions = <1 16>;
bindings = <&bt BT_CLR>;
};
combo_btldr {
timeout-ms = <50>;
key-positions = <1 18>;
bindings = <&bootloader>;
};
};
};
/ {
keymap {
compatible = "zmk,keymap";
default_layer {
// ┌───┬───┬───┬───┐
// │NUM│ / │ * │ - │
// ├───┼───┼───┼───┤
// │ 7 │ 8 │ 9 │ + │
// ├───┼───┼───┼─ ─┤
// │ 4 │ 5 │ 6 │ │
// ├───┼───┼───┼───┤
// │ 1 │ 2 │ 3 │RET│
// ├───┴───┼───┼─ ─┤
// │ 0 │ . │ │
// └───────┴───┴───┘
bindings = <
&kp KP_NUM &kp KP_DIVIDE &kp KP_MULTIPLY &kp KP_MINUS
&kp KP_N7 &kp KP_N8 &kp KP_N9 &kp KP_PLUS
&kp KP_N4 &kp KP_N5 &kp KP_N6 &trans
&kp KP_N1 &kp KP_N2 &kp KP_N3 &kp KP_ENTER
&kp KP_N0 &trans &kp KP_DOT &trans
>;
};
};
};