2020-08-29 07:38:40 +10:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020 TJ Campie
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*/
|
|
|
|
|
2020-09-14 22:39:42 +10:00
|
|
|
#include <dt-bindings/zmk/bt.h>
|
2020-08-28 10:09:40 +10:00
|
|
|
#include <behaviors.dtsi>
|
|
|
|
#include <dt-bindings/zmk/keys.h>
|
2020-09-14 14:29:31 +10:00
|
|
|
#include <dt-bindings/zmk/bt.h>
|
2020-08-28 10:09:40 +10:00
|
|
|
|
|
|
|
#define DEFAULT 0
|
|
|
|
#define NUM_SYM 1
|
|
|
|
#define NAV 2
|
2020-09-14 22:39:42 +10:00
|
|
|
|
|
|
|
/ {
|
|
|
|
behaviors {
|
|
|
|
hm: homerow_mods {
|
|
|
|
compatible = "zmk,behavior-hold-tap";
|
|
|
|
label = "homerow mods";
|
|
|
|
#binding-cells = <2>;
|
|
|
|
tapping_term_ms = <225>;
|
|
|
|
flavor = "tap-preferred";
|
|
|
|
bindings = <&kp>, <&kp>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-08-28 10:09:40 +10:00
|
|
|
/ {
|
|
|
|
keymap {
|
|
|
|
compatible = "zmk,keymap";
|
|
|
|
|
|
|
|
default_layer {
|
|
|
|
bindings = <
|
2020-08-28 13:23:27 +10:00
|
|
|
&kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P
|
2020-09-14 22:39:42 +10:00
|
|
|
&hm LGUI A &hm LALT S &hm LCTL D &hm LSFT F &kp G &kp H &hm RSFT J &hm RCTL K &hm RALT L &hm RGUI RET
|
2020-08-28 13:23:27 +10:00
|
|
|
&kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp CMMA &kp DOT
|
2020-09-14 22:39:42 +10:00
|
|
|
&kp LSFT &kp LGUI &kp LALT < NAV RET < NUM_SYM SPC &kp COLN &kp QUOT &kp FSLH
|
2020-08-28 10:09:40 +10:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
num_sym {
|
|
|
|
bindings = <
|
|
|
|
&kp NUM_1 &kp NUM_2 &kp NUM_3 &kp NUM_4 &kp NUM_5 &kp NUM_6 &kp NUM_7 &kp NUM_8 &kp NUM_9 &kp NUM_0
|
|
|
|
&trans &trans &trans &trans &trans &trans &trans &trans &kp EQL &kp MINUS
|
|
|
|
&kp DEL &none &none &none &none &none &none &none &kp DOT
|
2020-08-28 13:23:27 +10:00
|
|
|
&bootloader &reset &none &trans &trans &kp RET &trans &kp FSLH
|
2020-08-28 10:09:40 +10:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
|
|
|
nav {
|
|
|
|
bindings = <
|
2020-09-14 14:29:31 +10:00
|
|
|
&bt BT_CLR &bt BT_NXT &bt BT_PRV &none &none &none &none &kp UARW &none &kp BKSP
|
2020-08-28 10:09:40 +10:00
|
|
|
&trans &trans &trans &trans &none &none &kp LARW &kp DARW &kp RARW &none
|
|
|
|
&none &none &none &none &none &none &none &none &none
|
2020-09-14 22:39:42 +10:00
|
|
|
&bt BT_CLR &bt BT_NXT &none &trans &trans &kp RET &trans &kp FSLH
|
2020-08-28 10:09:40 +10:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|