Compare commits
5 commits
28c1d3c484
...
4397a63148
Author | SHA1 | Date | |
---|---|---|---|
4397a63148 | |||
3881477386 | |||
c251928a8e | |||
10d1805cc9 | |||
|
b529d191f2 |
2 changed files with 70 additions and 89 deletions
|
@ -1,8 +1,6 @@
|
||||||
# Copyright (c) 2022 The ZMK Contributors
|
# Copyright (c) 2022 The ZMK Contributors
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
CONFIG_BUILD_OUTPUT_UF2=y
|
|
||||||
|
|
||||||
if SHIELD_RAE_DUX_LEFT
|
if SHIELD_RAE_DUX_LEFT
|
||||||
|
|
||||||
config ZMK_KEYBOARD_NAME
|
config ZMK_KEYBOARD_NAME
|
||||||
|
|
|
@ -1,40 +1,28 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2021 The ZMK Contributors
|
* Copyright (c) 2021 The ZMK Contributors
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <behaviors.dtsi>
|
#include <behaviors.dtsi>
|
||||||
#include <dt-bindings/zmk/bt.h>
|
#include <dt-bindings/zmk/bt.h>
|
||||||
#include <dt-bindings/zmk/keys.h>
|
#include <dt-bindings/zmk/keys.h>
|
||||||
|
#include <dt-bindings/zmk/outputs.h>
|
||||||
&sk {
|
|
||||||
release-after-ms = <750>;
|
|
||||||
quick-release;
|
|
||||||
};
|
|
||||||
|
|
||||||
&caps_word {
|
&caps_word {
|
||||||
continue-list = <UNDERSCORE MINUS BSPC>;
|
continue-list = <UNDERSCORE MINUS BSPC>;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define RSTHD_L 0
|
#define BASE_L 0
|
||||||
#define NUM_L 1
|
#define SYM_L 1
|
||||||
#define SYM_L 2
|
#define NAV_L 2
|
||||||
#define NAV_L 3
|
#define NUM_L 3
|
||||||
#define FUN_L 4
|
#define FUN_L 4
|
||||||
|
|
||||||
#define MY_PSCRN LS(LC(PSCRN))
|
|
||||||
#define MY_COPY LC(INSERT)
|
|
||||||
#define MY_PASTE LS(INSERT)
|
|
||||||
#define VI_U LC(Z)
|
|
||||||
#define VI_W LC(RIGHT)
|
|
||||||
#define VI_B LC(LEFT)
|
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
combos {
|
combos {
|
||||||
compatible = "zmk,combos";
|
compatible = "zmk,combos";
|
||||||
|
|
||||||
// shortcut
|
|
||||||
#define COMBO(NAME, BINDINGS, KEYPOS, TIMEOUT) \
|
#define COMBO(NAME, BINDINGS, KEYPOS, TIMEOUT) \
|
||||||
combo_##NAME { \
|
combo_##NAME { \
|
||||||
timeout-ms = <TIMEOUT>; \
|
timeout-ms = <TIMEOUT>; \
|
||||||
|
@ -51,21 +39,21 @@
|
||||||
╰───────╮ 30 31 32 │ │ 33 34 35 ╭───────╯
|
╰───────╮ 30 31 32 │ │ 33 34 35 ╭───────╯
|
||||||
╰────────────╯ ╰────────────╯ */
|
╰────────────╯ ╰────────────╯ */
|
||||||
|
|
||||||
COMBO(caps_word_right, &caps_word, 26 27, 60)
|
//COMBO(caps_word_right, &caps_word, 26 27, 60)
|
||||||
COMBO(caps_word_left, &caps_word, 22 23, 60)
|
//COMBO(caps_word_left, &caps_word, 22 23, 60)
|
||||||
|
|
||||||
COMBO(colon, &kp COLON, 7 8, 60)
|
//COMBO(colon, &kp COLON, 7 8, 60)
|
||||||
COMBO(semicolon, &kp SEMI, 27 28, 60)
|
//COMBO(semicolon, &kp SEMI, 27 28, 60)
|
||||||
COMBO(slash, &kp FSLH, 1 2, 60)
|
//COMBO(slash, &kp FSLH, 1 2, 60)
|
||||||
|
|
||||||
COMBO(minus, &kp MINUS, 31 32, 100)
|
//COMBO(minus, &kp MINUS, 31 32, 100)
|
||||||
COMBO(underscore, &kp UNDER, 33 34, 100)
|
//COMBO(underscore, &kp UNDER, 33 34, 100)
|
||||||
|
|
||||||
COMBO(equal, &kp EQUAL, 12 23, 100)
|
//COMBO(equal, &kp EQUAL, 12 23, 100)
|
||||||
COMBO(enter, &kp ENTER, 17 26, 60)
|
//COMBO(enter, &kp ENTER, 17 26, 60)
|
||||||
|
|
||||||
COMBO(reset_left, &bootloader, 0 1 2 3, 100)
|
COMBO(reset_left, &bootloader, 0 1 2 3, 100)
|
||||||
// COMBO(reset_right, &bootloader, 6 7 8 9, 100)
|
COMBO(reset_right, &bootloader, 6 7 8 9, 100)
|
||||||
};
|
};
|
||||||
|
|
||||||
behaviors {
|
behaviors {
|
||||||
|
@ -75,7 +63,7 @@
|
||||||
#binding-cells = <2>;
|
#binding-cells = <2>;
|
||||||
flavor = "tap-preferred";
|
flavor = "tap-preferred";
|
||||||
tapping-term-ms = <200>;
|
tapping-term-ms = <200>;
|
||||||
quick-tap-ms = <125>;
|
quick-tap-ms = <200>;
|
||||||
global-quick-tap;
|
global-quick-tap;
|
||||||
bindings = <&kp>, <&kp>;
|
bindings = <&kp>, <&kp>;
|
||||||
// hold-trigger-key-positions = <5 6 7 8 9 15 16 17 18 19 25 26 27 28 29 30 31 32 33 34 35>;
|
// hold-trigger-key-positions = <5 6 7 8 9 15 16 17 18 19 25 26 27 28 29 30 31 32 33 34 35>;
|
||||||
|
@ -88,72 +76,67 @@
|
||||||
#binding-cells = <2>;
|
#binding-cells = <2>;
|
||||||
flavor = "tap-preferred";
|
flavor = "tap-preferred";
|
||||||
tapping-term-ms = <200>;
|
tapping-term-ms = <200>;
|
||||||
quick-tap-ms = <125>;
|
quick-tap-ms = <200>;
|
||||||
global-quick-tap;
|
global-quick-tap;
|
||||||
bindings = <&kp>, <&kp>;
|
bindings = <&kp>, <&kp>;
|
||||||
// hold-trigger-key-positions = <0 1 2 3 4 10 11 12 13 14 20 21 22 23 24 30 31 32 33 34 35>;
|
// hold-trigger-key-positions = <0 1 2 3 4 10 11 12 13 14 20 21 22 23 24 30 31 32 33 34 35>;
|
||||||
hold-trigger-key-positions = <0 1 2 3 4 10 11 12 13 14 16 17 18 19 20 21 22 23 24 30 31 32 33 34 35>;
|
hold-trigger-key-positions = <0 1 2 3 4 10 11 12 13 14 16 17 18 19 20 21 22 23 24 30 31 32 33 34 35>;
|
||||||
};
|
};
|
||||||
|
|
||||||
base_lt: base_layer_hold_tap {
|
conditional_layers {
|
||||||
compatible = "zmk,behavior-hold-tap";
|
compatible = "zmk,conditional-layers";
|
||||||
label = "BASE_LAYER_HOLD_TAP";
|
tri_layer {
|
||||||
#binding-cells = <2>;
|
if-layers = <NUM_L SYM_L>;
|
||||||
flavor = "tap-preferred";
|
then-layer = <FUN_L>;
|
||||||
tapping-term-ms = <200>;
|
};
|
||||||
quick-tap-ms = <50>;
|
|
||||||
global-quick-tap;
|
|
||||||
bindings = <&mo>, <&kp>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
keymap {
|
keymap {
|
||||||
compatible = "zmk,keymap";
|
compatible = "zmk,keymap";
|
||||||
|
|
||||||
// RSTHD
|
base_layer {
|
||||||
rsthd_layer {
|
|
||||||
bindings = <
|
bindings = <
|
||||||
&kp Z &kp C &kp Y &kp F &kp P &kp X &kp M &kp APOS &kp U &kp Q
|
&kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P
|
||||||
&lhm LALT R &lhm LSHFT S &lhm LCTRL T &lhm LGUI H &kp D &kp L &rhm LGUI N &rhm LCTRL A &rhm LSHFT I &rhm LALT O
|
&lhm LSHFT A &lhm LALT S &lhm LCTRL D &lhm LGUI F &lhm RALT G &rhm RALT H &rhm LGUI J &rhm LCTRL K &rhm LALT L &rhm LSHFT SEMI
|
||||||
&sk LSHIFT &kp V &kp G &kp K &kp B &kp W &kp J &kp COMMA &key_repeat &sk LSHIFT
|
&kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp SINGLE_QUOTE
|
||||||
/*& &*/ &kp ESC &base_lt NAV_L SPC &base_lt SYM_L TAB &base_lt SYM_L BSPC &base_lt NUM_L E &base_lt FUN_L DOT /* & &*/
|
&mo NAV_L &kp LSHFT &mo NUM_L &none &kp SPACE &mo SYM_L
|
||||||
>;
|
|
||||||
};
|
|
||||||
|
|
||||||
num_layer {
|
|
||||||
bindings = <
|
|
||||||
&trans &kp LT &kp MINUS &kp GT &trans &trans &trans &kp EQUAL &trans &trans
|
|
||||||
&lhm LALT N3 &lhm LSHFT N2 &lhm LCTRL N1 &lhm LGUI N0 &kp N4 &kp N5 &rhm LGUI N6 &rhm LCTRL N7 &rhm LSHFT N8 &rhm LALT N9
|
|
||||||
&kp FSLH &kp PLUS &kp CARET &kp STAR &trans &trans &trans &kp COMMA &kp DOT &trans
|
|
||||||
/*& &*/ &trans &trans &trans &trans &trans &trans /* & &*/
|
|
||||||
>;
|
>;
|
||||||
};
|
};
|
||||||
|
|
||||||
sym_layer {
|
sym_layer {
|
||||||
bindings = <
|
bindings = <
|
||||||
&trans &kp EXCL &kp AT &kp DLLR &trans &trans &kp TILDE &kp EQUAL &kp BSLH &trans
|
&kp ESC &kp LBKT &kp LBRC &kp LPAR &kp TILDE &kp CARET &kp RPAR &kp RBRC &kp RBKT &kp GRAVE
|
||||||
&kp HASH &kp LT &kp MINUS &kp GT &kp GRAVE &kp AMPS &kp LBRC &kp LPAR &kp RPAR &kp PIPE
|
&kp MINUS &kp STAR &kp EQUAL &kp UNDERSCORE &kp DOLLAR &rhm RALT HASH &kp LGUI &kp LCTRL &kp LALT &kp LSHFT
|
||||||
&kp FSLH &kp PLUS &kp CARET &kp STAR &kp UNDER &kp PRCNT &kp RBRC &kp LBKT &kp RBKT &trans
|
&kp PLUS &kp PIPE &kp AT &kp SLASH &kp PERCENT &kp AMPERSAND &kp BACKSLASH &kp RA(SLASH) &kp QUESTION &kp EXCLAMATION
|
||||||
/*& &*/ &trans &trans &trans &trans &trans &trans /* & &*/
|
&trans &trans &trans &trans &trans &trans
|
||||||
>;
|
>;
|
||||||
};
|
};
|
||||||
|
|
||||||
nav_layer {
|
nav_layer {
|
||||||
bindings = <
|
bindings = <
|
||||||
&trans &kp PSCRN &kp MY_COPY &kp MY_PSCRN &kp MY_PASTE &trans &kp C_BRI_DEC &kp C_BRI_INC &kp VI_U &bootloader
|
&kp TAB &none &kp C_VOL_UP &kp C_VOL_DN &kp C_MUTE &none &none &none &none &bootloader
|
||||||
&kp END &kp C_NEXT &kp C_PP &kp C_VOL_UP &kp DEL &kp LEFT &kp DOWN &kp UP &kp RIGHT &kp HOME
|
&kp LSHFT &kp LALT &kp LCTRL &kp LGUI &kp BACKSPACE &kp LEFT &kp DOWN &kp UP &kp RIGHT &none
|
||||||
&trans &kp C_PREV &kp C_MUTE &kp C_VOL_DN &kp UNDER &kp VI_B &kp PG_DN &kp PG_UP &kp VI_W &trans
|
&out OUT_TOG &bt BT_SEL 3 &bt BT_SEL 2 &bt BT_CLR &kp PRINTSCREEN &none &kp PG_DN &kp PG_UP &none &kp RETURN
|
||||||
/*& &*/ &trans &trans &trans &bt BT_PRV &bt BT_NXT &bt BT_CLR /* & &*/
|
&trans &trans &trans &trans &trans &trans
|
||||||
>;
|
>;
|
||||||
};
|
};
|
||||||
|
|
||||||
function_layer {
|
num_layer {
|
||||||
bindings = <
|
bindings = <
|
||||||
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
&none &none &none &none &none &none &kp N7 &kp N8 &kp N9 &none
|
||||||
&kp F3 &kp F2 &kp F1 &kp F10 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9
|
&kp LSHFT &kp LALT &kp LCTRL &kp LGUI &kp RALT &none &kp N4 &kp N5 &kp N6 &kp N0
|
||||||
&trans &trans &trans &kp F11 &trans &trans &kp F12 &trans &trans &trans
|
&none &none &none &none &none &none &kp N1 &kp N2 &kp N3 &none
|
||||||
/*& &*/ &trans &trans &trans &trans &trans &trans /* & &*/
|
&trans &trans &trans &trans &trans &trans
|
||||||
|
>;
|
||||||
|
};
|
||||||
|
|
||||||
|
fun_layer {
|
||||||
|
bindings = <
|
||||||
|
&none &none &none &none &none &none &kp F7 &kp F8 &kp F9 &kp F12
|
||||||
|
&kp LSHFT &kp LALT &kp LCTRL &kp LGUI &kp RALT &none &kp F4 &kp F5 &kp F6 &kp F11
|
||||||
|
&none &none &none &none &none &none &kp F1 &kp F2 &kp F3 &kp F10
|
||||||
|
&trans &trans &trans &trans &trans &trans
|
||||||
>;
|
>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue