2020-12-27 07:13:42 -08: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-12 13:43:05 -07:00
|
|
|
/* QWERTY
|
2020-12-27 07:13:42 -08: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-12 13:43:05 -07: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-27 07:13:42 -08: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-12 13:43:05 -07:00
|
|
|
* | Shift| Boot | Reset| | | | | | | | | | | | Shift|
|
2020-12-27 07:13:42 -08:00
|
|
|
* |-------------+------+------+------+------+------+------+------+------+------+------+------+------+------+-------------|
|
2021-10-12 13:43:05 -07:00
|
|
|
* | Ctlr | | | Win |||||||| Alt | | Lower|||||||| Raise| | RAlt |||||||| | | | RCtrl|
|
2020-12-27 07:13:42 -08:00
|
|
|
* .----------------------------------------------------------------------------------------------------------------------.
|
2021-10-12 13:43:05 -07:00
|
|
|
*/ /* FIXME boot and reset are not yet locale aware */
|
2020-12-27 07:13:42 -08:00
|
|
|
bindings = <
|
2023-02-20 22:17:12 -08:00
|
|
|
&kp F11 &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &none &none &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F12
|
2020-12-27 07:13:42 -08: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
|
2022-09-20 18:37:16 -07:00
|
|
|
&trans &bootloader &sys_reset &none &none &none &none &none &none &none &none &none &none &trans
|
2021-10-12 13:43:05 -07:00
|
|
|
&trans &none &none &trans &trans &none &trans &trans &none &trans &none &none &none &trans
|
2020-12-27 07:13:42 -08:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
raise_layer {
|
|
|
|
/* .----------------------------------------------------------------------------------------------------------------------.
|
2021-10-12 13:43:05 -07:00
|
|
|
* | | BT 0 | BT 1 | BT 2 | BT 3 | | BTCL | | | | | | | | |
|
2020-12-27 07:13:42 -08:00
|
|
|
* |------+------+------+------+------+------+------+--------------------+------+------+------+------+------+------+------|
|
|
|
|
* | | | | | | | | | | | | | | | |
|
|
|
|
* |------+------+------+------+------+------+------+--------------------+------+------+------+------+------+------+------|
|
|
|
|
* | | | | | | | | | | | | | | | |
|
|
|
|
* |------+------+------+------+------+------+---------------------------+------+------+------+------+------+------+------|
|
2021-10-12 13:43:05 -07:00
|
|
|
* | Shift| | | | | | | | | | | | Boot | Reset| Shift|
|
2020-12-27 07:13:42 -08:00
|
|
|
* |-------------+------+------+------+------+------+------+------+------+------+------+------+------+------+-------------|
|
2021-10-12 13:43:05 -07:00
|
|
|
* | Ctlr | | | Win |||||||| Alt | | Lower|||||||| Raise| | RAlt |||||||| | | | RCtrl|
|
2020-12-27 07:13:42 -08:00
|
|
|
* .----------------------------------------------------------------------------------------------------------------------.
|
2021-10-12 13:43:05 -07:00
|
|
|
*/ /* FIXME boot and reset are not yet locale aware */
|
2020-12-27 07:13:42 -08:00
|
|
|
bindings = <
|
2021-10-12 13:43:05 -07: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-27 07:13:42 -08: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
|
2022-09-20 18:37:16 -07:00
|
|
|
&trans &none &none &none &none &none &none &none &none &none &none &bootloader &sys_reset &trans
|
2021-10-12 13:43:05 -07:00
|
|
|
&trans &none &none &trans &trans &none &trans &trans &none &trans &none &none &none &trans
|
2020-12-27 07:13:42 -08:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|