Update nibble keymap
This commit is contained in:
parent
22f0b8472b
commit
ab3bb95715
|
@ -8,9 +8,12 @@
|
||||||
#include <dt-bindings/zmk/keys.h>
|
#include <dt-bindings/zmk/keys.h>
|
||||||
#include <dt-bindings/zmk/bt.h>
|
#include <dt-bindings/zmk/bt.h>
|
||||||
|
|
||||||
|
#define TIMEOUT_COMBO 250
|
||||||
|
|
||||||
#define LAYER_ID_DEFAULT 0
|
#define LAYER_ID_DEFAULT 0
|
||||||
#define LAYER_ID_FUNC 1
|
#define LAYER_ID_NAV 1
|
||||||
#define LAYER_ID_ALT 2
|
#define LAYER_ID_FUNC 2
|
||||||
|
#define LAYER_ID_ALT 3
|
||||||
|
|
||||||
&pro_micro_i2c {
|
&pro_micro_i2c {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
@ -34,14 +37,26 @@
|
||||||
|
|
||||||
combos {
|
combos {
|
||||||
compatible = "zmk,combos";
|
compatible = "zmk,combos";
|
||||||
combo_layer_navigation {
|
combo_layer_navigations_left {
|
||||||
|
timeout-ms = <TIMEOUT_COMBO>;
|
||||||
key-positions = <34 19 36>;
|
key-positions = <34 19 36>;
|
||||||
bindings = <&tog LAYER_ID_FUNC>;
|
bindings = <&tog LAYER_ID_NAV>;
|
||||||
};
|
};
|
||||||
combo_shift_lock {
|
combo_layer_navigation_right {
|
||||||
|
timeout-ms = <TIMEOUT_COMBO>;
|
||||||
|
key-positions = <39 24 41>;
|
||||||
|
bindings = <&tog LAYER_ID_NAV>;
|
||||||
|
};
|
||||||
|
combo_shift_lock_left {
|
||||||
|
timeout-ms = <TIMEOUT_COMBO>;
|
||||||
key-positions = <19 35>;
|
key-positions = <19 35>;
|
||||||
bindings = <&kt LSHFT>;
|
bindings = <&kt LSHFT>;
|
||||||
};
|
};
|
||||||
|
combo_shift_lock_right {
|
||||||
|
timeout-ms = <TIMEOUT_COMBO>;
|
||||||
|
key-positions = <24 40>;
|
||||||
|
bindings = <&kt LSHFT>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
keymap {
|
keymap {
|
||||||
|
@ -60,16 +75,28 @@
|
||||||
&trans &kp LCTRL &kp LGUI &kp LALT &kp SPACE &mo LAYER_ID_FUNC &kp RCTRL &kp RALT &kp LEFT &kp DOWN &kp RIGHT
|
&trans &kp LCTRL &kp LGUI &kp LALT &kp SPACE &mo LAYER_ID_FUNC &kp RCTRL &kp RALT &kp LEFT &kp DOWN &kp RIGHT
|
||||||
>;
|
>;
|
||||||
};
|
};
|
||||||
|
nav_layer {
|
||||||
|
label = "Nav";
|
||||||
|
sensor-bindings = <&inc_dec_kp C_VOLUME_UP C_VOLUME_DOWN>;
|
||||||
|
|
||||||
|
bindings = <
|
||||||
|
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &kp DEL
|
||||||
|
&trans &trans &kp PG_UP &kp HOME &kp UP &kp END &trans &trans &kp HOME &kp UP &kp END &kp PG_UP &trans &trans &trans &trans
|
||||||
|
&none &trans &kp PG_DN &kp LEFT &kp DOWN &kp RIGHT &trans &trans &kp LEFT &kp DOWN &kp RIGHT &kp PG_DN &trans &trans &trans
|
||||||
|
&none &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
||||||
|
&none &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
||||||
|
>;
|
||||||
|
};
|
||||||
function_layer {
|
function_layer {
|
||||||
label = "Function";
|
label = "Function";
|
||||||
|
|
||||||
sensor-bindings = <&inc_dec_kp C_VOLUME_UP C_VOLUME_DOWN>;
|
sensor-bindings = <&inc_dec_kp C_VOLUME_UP C_VOLUME_DOWN>;
|
||||||
|
|
||||||
bindings = <
|
bindings = <
|
||||||
&kp GRAVE &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 DEL &kp DEL
|
&kp GRAVE &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12 &trans &kp DEL
|
||||||
&trans &kp CAPS &kp PG_UP &kp HOME &kp UP &kp END &trans &trans &trans &trans &trans &trans &trans &trans &kp INS &kp INS
|
&trans &kp CAPS &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &kp INS &kp INS
|
||||||
&none &trans &kp PG_DN &kp LEFT &kp DOWN &kp RIGHT &trans &trans &trans &trans &trans &trans &trans &kp PSCRN &kp PSCRN
|
&none &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &kp PSCRN &kp PSCRN
|
||||||
&none &bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &trans &trans &trans &trans &trans &trans &bootloader &reset &kp C_PP
|
&none &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &kp C_PP
|
||||||
&none &trans &trans &trans &trans &trans &kp C_VOLUME_UP &kp C_VOLUME_DOWN &kp C_MUTE &trans &trans
|
&none &trans &trans &trans &trans &trans &kp C_VOLUME_UP &kp C_VOLUME_DOWN &kp C_MUTE &trans &trans
|
||||||
>;
|
>;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue