2021-04-12 16:59:40 -05:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020 The ZMK Contributors
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <behaviors.dtsi>
|
|
|
|
#include <dt-bindings/zmk/keys.h>
|
|
|
|
#include <dt-bindings/zmk/outputs.h>
|
|
|
|
#include <dt-bindings/zmk/bt.h>
|
|
|
|
|
2021-04-12 21:52:04 -05:00
|
|
|
&mt {
|
|
|
|
tapping-term-ms = <200>;
|
|
|
|
flavor = "hold-preferred";
|
|
|
|
};
|
|
|
|
|
2021-04-12 16:59:40 -05:00
|
|
|
/ {
|
2021-04-12 21:52:04 -05:00
|
|
|
behaviors {
|
|
|
|
ht: hold_tap {
|
|
|
|
compatible = "zmk,behavior-hold-tap";
|
|
|
|
label = "Hold Tap";
|
|
|
|
#binding-cells = <2>;
|
|
|
|
tapping-term-ms = <200>;
|
|
|
|
flavor = "tap-preferred";
|
|
|
|
bindings = <&kp>, <&kp>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-04-12 16:59:40 -05:00
|
|
|
keymap {
|
|
|
|
compatible = "zmk,keymap";
|
|
|
|
|
|
|
|
default_layer {
|
|
|
|
// -------------------------------------- ---------------------------------------
|
|
|
|
// | TAB | Q | W | E | R | T | | Y | U | I | O | P | BKSP |
|
|
|
|
// | CTRL | A | S | D | F | G | | H | J | K | L | ; | ' |
|
|
|
|
// | SHFT | Z | X | C | V | B | | N | M | , | . | / | ENT |
|
|
|
|
// -------------------| GUI | SPC | LWR | | RSE | SPC | ALT |-------------------
|
|
|
|
// ------------------- --------------------
|
|
|
|
bindings = <
|
2021-04-12 21:52:04 -05:00
|
|
|
&kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSPC
|
|
|
|
&mt LCTRL ESC &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT
|
|
|
|
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RET
|
|
|
|
&kp LGUI &kp SPACE &mo 1 &mo 2 &kp SPACE &kp RALT
|
2021-04-12 20:29:35 -05:00
|
|
|
>;
|
2021-04-12 16:59:40 -05:00
|
|
|
};
|
|
|
|
left_layer {
|
|
|
|
// -------------------------------------- --------------------------------------
|
2021-04-12 21:52:04 -05:00
|
|
|
// | ~ | ! | @ | # | $ | % | | ^ | & | * | ( | ) | BKSP |
|
|
|
|
// | | | | | | | | | _ | + | { | } | "|" |
|
|
|
|
// | | | | | | | | | | < | > | ? | | // TODO: Fix this row when &mkp is committed
|
|
|
|
// ------------------| | | | | ADJ | ENT | |-------------------
|
|
|
|
// ------------------- -------------------
|
2021-04-12 16:59:40 -05:00
|
|
|
bindings = <
|
|
|
|
&kp TILDE &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp KP_MULTIPLY &kp LPAR &kp RPAR &kp BSPC
|
2021-04-12 21:52:04 -05:00
|
|
|
&trans &trans &trans &trans &trans &trans &trans &kp UNDER &kp PLUS &kp LBRC &kp RBRC &kp PIPE
|
|
|
|
&trans &trans &trans &trans &trans &trans &trans &trans &kp LT &kp GT &kp QMARK &kp TILDE
|
2021-04-12 16:59:40 -05:00
|
|
|
&trans &trans &trans &mo 3 &kp RET &trans
|
2021-04-12 20:29:35 -05:00
|
|
|
>;
|
2021-04-12 16:59:40 -05:00
|
|
|
};
|
2021-04-12 20:29:35 -05:00
|
|
|
right_layer {
|
|
|
|
// -------------------------------------- --------------------------------------
|
|
|
|
// | ESC | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | BKSP |
|
|
|
|
// | | | | | | | | | - | = | [ | ] | \ |
|
|
|
|
// | | | | | | | | | INS | | | | |
|
|
|
|
// -------------------| | ALT | ADJ | | | | |-------------------
|
|
|
|
// ------------------- -------------------
|
|
|
|
bindings = <
|
|
|
|
&kp ESC &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp BSPC
|
2021-04-12 21:52:04 -05:00
|
|
|
&trans &trans &trans &trans &trans &trans &trans &kp MINUS &kp EQUAL &kp LBKT &kp RBKT &kp BSLH
|
|
|
|
&trans &trans &trans &trans &trans &trans &trans &kp INS &trans &trans &trans &trans
|
2021-04-12 20:29:35 -05:00
|
|
|
&trans &kp LALT &mo 3 &trans &trans &trans
|
2021-04-12 16:59:40 -05:00
|
|
|
>;
|
2021-04-12 20:29:35 -05:00
|
|
|
};
|
2021-04-12 21:52:04 -05:00
|
|
|
/* adjust_layer { */
|
|
|
|
/* // ------------------------------------- ------------------------------------- */
|
|
|
|
/* // | | LCL | MSU | RCL | MWU | | | MNX | MVD | MPL | MVU | MPV | | // TODO: once mouse keys exist */
|
|
|
|
/* // | | MSL | MSD | MSR | MWD | USB | | LFT | DWN | UP | RGT | | | // TODO: once mouse keys exist */
|
|
|
|
/* // |CONFG| BT1 | BT2 | BT3 | BT4 | BT5 | | | | | | | | */
|
|
|
|
/* // ------------------| | | | | | | |------------------ */
|
|
|
|
/* // ------------------- ------------------- */
|
|
|
|
/* bindings = < */
|
|
|
|
/* &trans &trans &trans &trans &trans &trans &kp C_NEXT &kp C_VOL_DN &kp K_PP &kp C_VOL_UP &kp C_PREV &trans */
|
|
|
|
/* &trans &trans &trans &trans &trans &out USB &kp LEFT &kp DOWN &kp UP &kp RIGHT &trans &trans */
|
|
|
|
/* &mo 4 &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 */
|
|
|
|
/* &trans &trans &trans &trans &trans &trans */
|
|
|
|
/* >; */
|
|
|
|
/* }; */
|
2021-04-12 20:29:35 -05:00
|
|
|
config_layer {
|
|
|
|
// ------------------------------------- -------------------------------------
|
|
|
|
// |BTCLR| | | | | | | | | | | | |
|
|
|
|
// | | | | | | | | | | | | | |
|
|
|
|
// | | | | | | | | | | | | |RESET|
|
|
|
|
// ------------------| | | | | | | |------------------
|
|
|
|
// ------------------- -------------------
|
|
|
|
bindings = <
|
|
|
|
&bt BT_CLR &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
|
|
|
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
|
|
|
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &reset
|
|
|
|
&trans &trans &trans &trans &trans &trans
|
2021-04-12 16:59:40 -05:00
|
|
|
>;
|
2021-04-12 20:29:35 -05:00
|
|
|
};
|
2021-04-12 16:59:40 -05:00
|
|
|
};
|
|
|
|
};
|