2020-08-28 14:38:40 -07:00
|
|
|
/*
|
2020-09-14 07:25:31 -07:00
|
|
|
* Copyright (c) 2020 The ZMK Contributors
|
|
|
|
*
|
2020-08-28 14:38:40 -07:00
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*/
|
|
|
|
|
2020-08-27 17:09:40 -07:00
|
|
|
#include <behaviors.dtsi>
|
|
|
|
#include <dt-bindings/zmk/keys.h>
|
2020-09-13 21:29:31 -07:00
|
|
|
#include <dt-bindings/zmk/bt.h>
|
2020-08-27 17:09:40 -07:00
|
|
|
|
|
|
|
#define DEFAULT 0
|
|
|
|
#define NUM_SYM 1
|
|
|
|
#define NAV 2
|
2020-09-14 05:39:42 -07:00
|
|
|
|
|
|
|
/ {
|
|
|
|
behaviors {
|
2020-09-14 07:25:31 -07:00
|
|
|
hm: homerow_mods {
|
|
|
|
compatible = "zmk,behavior-hold-tap";
|
|
|
|
#binding-cells = <2>;
|
2021-02-06 12:47:21 -08:00
|
|
|
tapping-term-ms = <225>;
|
2020-09-14 05:39:42 -07:00
|
|
|
flavor = "tap-preferred";
|
2020-09-14 07:25:31 -07:00
|
|
|
bindings = <&kp>, <&kp>;
|
2020-09-14 05:39:42 -07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-08-27 17:09:40 -07:00
|
|
|
/ {
|
|
|
|
keymap {
|
|
|
|
compatible = "zmk,keymap";
|
|
|
|
|
|
|
|
default_layer {
|
|
|
|
bindings = <
|
2020-11-18 16:46:59 -08:00
|
|
|
&kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P
|
|
|
|
&hm LGUI A &hm LALT S &hm LCTRL D &hm LSHFT F &kp G &kp H &hm RSHFT J &hm RCTRL K &hm RALT L &hm RGUI RET
|
|
|
|
&kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT
|
|
|
|
&kp LSHFT &kp LGUI &kp LALT < NAV RET < NUM_SYM SPACE &kp COLON &kp SQT &kp FSLH
|
2020-08-27 17:09:40 -07:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
num_sym {
|
|
|
|
bindings = <
|
2020-11-18 16:46:59 -08:00
|
|
|
&kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0
|
|
|
|
&trans &trans &trans &trans &trans &trans &trans &trans &kp EQUAL &kp MINUS
|
2020-11-16 07:23:05 -08:00
|
|
|
&kp DEL &none &none &none &none &none &none &none &kp DOT
|
2022-09-20 18:37:16 -07:00
|
|
|
&bootloader &sys_reset &none &trans &trans &kp RET &trans &kp FSLH
|
2020-08-27 17:09:40 -07:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
|
|
|
nav {
|
|
|
|
bindings = <
|
2020-11-18 16:46:59 -08:00
|
|
|
&bt BT_CLR &bt BT_NXT &bt BT_PRV &none &none &none &none &kp UP &none &kp BSPC
|
|
|
|
&trans &trans &trans &trans &none &none &kp LEFT &kp DOWN &kp RIGHT &none
|
2020-11-16 07:23:05 -08:00
|
|
|
&none &none &none &none &none &none &none &none &none
|
|
|
|
&none &none &none &trans &trans &kp RET &trans &kp FSLH
|
2020-08-27 17:09:40 -07:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|