2020-12-28 02:13:42 +11:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020 The ZMK Contributors
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <behaviors.dtsi>
|
|
|
|
#include <dt-bindings/zmk/keys.h>
|
|
|
|
#include <dt-bindings/zmk/bt.h>
|
|
|
|
|
|
|
|
#define DEFAULT 0
|
|
|
|
#define LOWER 1
|
|
|
|
#define RAISE 2
|
|
|
|
|
|
|
|
|
|
|
|
/ {
|
|
|
|
keymap {
|
|
|
|
compatible = "zmk,keymap";
|
|
|
|
|
|
|
|
default_layer {
|
2021-10-13 07:43:05 +11:00
|
|
|
/* QWERTY
|
2020-12-28 02:13:42 +11:00
|
|
|
* .----------------------------------------------------------------------------------------------------------------------.
|
|
|
|
* | ` | 1 | 2 | 3 | 4 | 5 | [ | | ] | 6 | 7 | 8 | 9 | 0 | PScr |
|
|
|
|
* |------+------+------+------+------+------+------+--------------------+------+------+------+------+------+------+------|
|
|
|
|
* | ESC | Q | W | E | R | T | - | | = | Y | U | I | O | P | \ |
|
|
|
|
* |------+------+------+------+------+------+------+--------------------+------+------+------+------+------+------+------|
|
|
|
|
* | Tab | A | S | D | F | G | Del | | Bksp | H | J | K | L | ; | ' |
|
|
|
|
* |------+------+------+------+------+------+---------------------------+------+------+------+------+------+------+------|
|
|
|
|
* | Shift| Z | X | C | V | B | End | | Home | N | M | , | . | / | Shift|
|
|
|
|
* |-------------+------+------+------+------+------+------+------+------+------+------+------+------+------+-------------|
|
|
|
|
* | Ctrl | | PGDN | Win |||||||| Alt | Space| Lower|||||||| Raise| Enter| RAlt |||||||| | PGUP | Ins | RCtrl|
|
|
|
|
* .----------------------------------------------------------------------------------------------------------------------.
|
|
|
|
*/
|
|
|
|
bindings = <
|
2021-10-13 07:43:05 +11:00
|
|
|
&kp GRAVE &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp LBKT &kp RBKT &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp PSCRN
|
2020-12-28 02:13:42 +11:00
|
|
|
&kp ESC &kp Q &kp W &kp E &kp R &kp T &kp MINUS &kp EQUAL &kp Y &kp U &kp I &kp O &kp P &kp BSLH
|
|
|
|
&kp TAB &kp A &kp S &kp D &kp F &kp G &kp DEL &kp BSPC &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 END &kp HOME &kp N &kp M &kp COMMA &kp DOT &kp SLASH &kp RSHFT
|
|
|
|
&kp LCTRL &none &kp PG_DN &kp LMETA &kp LALT &kp SPACE &mo LOWER &mo RAISE &kp RET &kp RALT &none &kp PG_UP &kp INS &kp RCTRL
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
lower_layer {
|
|
|
|
/* .----------------------------------------------------------------------------------------------------------------------.
|
|
|
|
* | F11 | F1 | F2 | F3 | F4 | F5 | | | | F6 | F7 | F8 | F9 | F10 | F12 |
|
|
|
|
* |------+------+------+------+------+------+------+--------------------+------+------+------+------+------+------+------|
|
|
|
|
* | | | | | | | | | | | | | | | |
|
|
|
|
* |------+------+------+------+------+------+------+--------------------+------+------+------+------+------+------+------|
|
|
|
|
* | | | | | | | | | | | | | | | |
|
|
|
|
* |------+------+------+------+------+------+---------------------------+------+------+------+------+------+------+------|
|
2021-10-13 07:43:05 +11:00
|
|
|
* | Shift| Boot | Reset| | | | | | | | | | | | Shift|
|
2020-12-28 02:13:42 +11:00
|
|
|
* |-------------+------+------+------+------+------+------+------+------+------+------+------+------+------+-------------|
|
2021-10-13 07:43:05 +11:00
|
|
|
* | Ctlr | | | Win |||||||| Alt | | Lower|||||||| Raise| | RAlt |||||||| | | | RCtrl|
|
2020-12-28 02:13:42 +11:00
|
|
|
* .----------------------------------------------------------------------------------------------------------------------.
|
2021-10-13 07:43:05 +11:00
|
|
|
*/ /* FIXME boot and reset are not yet locale aware */
|
2020-12-28 02:13:42 +11:00
|
|
|
bindings = <
|
|
|
|
&kp F11 &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp &none &kp &none &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F12
|
|
|
|
&none &none &none &none &none &none &none &none &none &none &none &none &none &none
|
|
|
|
&none &none &none &none &none &none &none &none &none &none &none &none &none &none
|
2021-10-13 07:43:05 +11:00
|
|
|
&trans &bootloader &reset &none &none &none &none &none &none &none &none &none &none &trans
|
|
|
|
&trans &none &none &trans &trans &none &trans &trans &none &trans &none &none &none &trans
|
2020-12-28 02:13:42 +11:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
raise_layer {
|
|
|
|
/* .----------------------------------------------------------------------------------------------------------------------.
|
2021-10-13 07:43:05 +11:00
|
|
|
* | | BT 0 | BT 1 | BT 2 | BT 3 | | BTCL | | | | | | | | |
|
2020-12-28 02:13:42 +11:00
|
|
|
* |------+------+------+------+------+------+------+--------------------+------+------+------+------+------+------+------|
|
|
|
|
* | | | | | | | | | | | | | | | |
|
|
|
|
* |------+------+------+------+------+------+------+--------------------+------+------+------+------+------+------+------|
|
|
|
|
* | | | | | | | | | | | | | | | |
|
|
|
|
* |------+------+------+------+------+------+---------------------------+------+------+------+------+------+------+------|
|
2021-10-13 07:43:05 +11:00
|
|
|
* | Shift| | | | | | | | | | | | Boot | Reset| Shift|
|
2020-12-28 02:13:42 +11:00
|
|
|
* |-------------+------+------+------+------+------+------+------+------+------+------+------+------+------+-------------|
|
2021-10-13 07:43:05 +11:00
|
|
|
* | Ctlr | | | Win |||||||| Alt | | Lower|||||||| Raise| | RAlt |||||||| | | | RCtrl|
|
2020-12-28 02:13:42 +11:00
|
|
|
* .----------------------------------------------------------------------------------------------------------------------.
|
2021-10-13 07:43:05 +11:00
|
|
|
*/ /* FIXME boot and reset are not yet locale aware */
|
2020-12-28 02:13:42 +11:00
|
|
|
bindings = <
|
2021-10-13 07:43:05 +11:00
|
|
|
&none &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &none &bt BT_CLR &none &none &none &none &none &none &none
|
2020-12-28 02:13:42 +11:00
|
|
|
&none &none &none &none &none &none &none &none &none &none &none &none &none &none
|
|
|
|
&none &none &none &none &none &none &none &none &none &none &none &none &none &none
|
2021-10-13 07:43:05 +11:00
|
|
|
&trans &none &none &none &none &none &none &none &none &none &none &bootloader &reset &trans
|
|
|
|
&trans &none &none &trans &trans &none &trans &trans &none &trans &none &none &none &trans
|
2020-12-28 02:13:42 +11:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|