keyboards/zorne/config/corne.keymap

122 lines
6.7 KiB
Plaintext
Raw Normal View History

/*
* 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-11-08 23:20:01 -06:00
#include <dt-bindings/zmk/ext_power.h>
#define CAN_DEFINE 1
&mt {
tapping-term-ms = <200>;
flavor = "hold-preferred";
};
/ {
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>;
};
};
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 |
2021-06-04 09:21:38 -05:00
// -------------------| GUI | SPC | TO_L| | TO_R| SPC | ALT |-------------------
// ------------------- --------------------
bindings = <
&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
>;
};
left_layer {
2021-06-04 09:21:38 -05:00
// TODO: Not sure about the function keys laid out this way. May throw them to the top row for the config layer?
// ------------------------------------- -------------------------------------
// | ~ | ! | @ | # | $ | % | | ^ | & | * | ( | ) | |
2021-06-04 09:21:38 -05:00
// | F1 | F2 | F3 | F4 | F5 | F6 | | | _ | + | { | } | "|" |
// | F7 | F8 | F9 | F10 | F11 | F12 | | | | < | > | ? | | // TODO: Fix this row when &mkp is committed
// ------------------| ADJ | | | | ADJ | ENT | |------------------
// ------------------- -------------------
bindings = <
&kp TILDE &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp KP_MULTIPLY &kp LPAR &kp RPAR &trans
2021-06-04 09:21:38 -05:00
&kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &trans &kp UNDER &kp PLUS &kp LBRC &kp RBRC &kp PIPE
&kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12 &trans &trans &kp LT &kp GT &kp QMARK &kp TILDE
2021-11-08 23:20:01 -06:00
&mo 3 &trans &trans &mo 3 &kp RET &trans
2021-04-12 20:29:35 -05:00
>;
};
2021-04-12 20:29:35 -05:00
right_layer {
2021-06-04 09:21:38 -05:00
// ------------------------------------- -------------------------------------
// | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | DEL |
2021-06-04 09:21:38 -05:00
// | | | | | | | | | - | = | [ | ] | \ |
2021-11-08 23:20:01 -06:00
// | SHFT| | | | | | | INS | | | | | |
2021-06-04 09:21:38 -05:00
// ------------------| | ALT | ADJ | | | | ADJ |------------------
2021-04-12 21:58:25 -05:00
// ------------------- -------------------
bindings = <
2021-06-04 09:21:38 -05:00
&kp GRAV &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp DEL
&trans &trans &trans &trans &trans &trans &trans &kp MINUS &kp EQUAL &kp LBKT &kp RBKT &kp BSLH
&kp LSHFT &trans &trans &trans &trans &trans &trans &kp INS &trans &trans &trans &trans
&trans &kp LALT &mo 3 &trans &trans &mo 3
2021-04-12 21:58:25 -05:00
>;
};
adjust_layer {
// ------------------------------------- -------------------------------------
2021-06-04 09:21:38 -05:00
// |CONFG| LCL | MSU | RCL | MWU | | | MPV | MVD | MPL | MVU | MNX |CONFG| // TODO: once mouse keys exist
2021-04-12 21:58:25 -05:00
// | | MSL | MSD | MSR | MWD | USB | | LFT | DWN | UP | RGT | | | // TODO: once mouse keys exist
2021-06-04 09:21:38 -05:00
// | | BT1 | BT2 | BT3 | BT4 | BT5 | | HOM | PGD | PGU | END | | |
2021-04-12 21:58:25 -05:00
// ------------------| | | | | | | |------------------
// ------------------- -------------------
2021-04-12 20:29:35 -05:00
bindings = <
2021-11-08 23:20:01 -06:00
&mo 4 &trans &trans &trans &trans &trans &kp C_PREV &kp C_VOL_DN &kp K_PP &kp C_VOL_UP &kp C_NEXT &mo 4
2021-04-12 21:58:25 -05:00
&trans &trans &trans &trans &trans &out OUT_USB &kp LEFT &kp DOWN &kp UP &kp RIGHT &trans &trans
2021-06-04 09:21:38 -05:00
&trans &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &kp HOME &kp PGDN &kp PGUP &kp END &trans &trans
2021-04-12 21:58:25 -05:00
&trans &trans &trans &trans &trans &trans
>;
2021-04-12 20:29:35 -05:00
};
config_layer {
// ------------------------------------- -------------------------------------
2021-11-08 23:20:01 -06:00
// | | PWR | | | | | | | | | | PWR | |
2021-04-12 20:29:35 -05:00
// |BTCLR| | | | | | | | | | | | |
2021-06-04 09:21:38 -05:00
// |RESET| | | | | | | | | | | |RESET|
2021-11-08 23:20:01 -06:00
// ------------------| |SUPER| | | |SUPER| |------------------ // TODO: Super layer (all thumb keys?)
2021-04-12 20:29:35 -05:00
// ------------------- -------------------
bindings = <
2021-11-08 23:20:01 -06:00
&trans &ext_power EP_TOG &trans &trans &trans &trans &trans &trans &trans &trans &ext_power EP_TOG &trans
&bt BT_CLR &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&reset &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &reset
&trans &trans &trans &trans &trans &trans
>;
2021-04-12 20:29:35 -05:00
};
2021-11-08 23:20:01 -06:00
// super_layer {
2021-06-04 09:21:38 -05:00
// ------------------------------------- -------------------------------------
// | | | | | | | | | | | | | |
// | | | | | | | | | | | | | |
// | | | | | | | | | | | | | |
// ------------------| | | | | | | |------------------
// ------------------- -------------------
2021-11-08 23:20:01 -06:00
//bindings = <
// &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 &trans &trans
// &trans &trans &trans &trans &trans &trans
//>;
//};
};
};