2024-08-09 17:20:17 +00:00
|
|
|
// Copyright (c) 2022 The ZMK Contributors
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
#include <behaviors.dtsi>
|
|
|
|
#include <dt-bindings/zmk/keys.h>
|
|
|
|
#include <dt-bindings/zmk/bt.h>
|
|
|
|
|
|
|
|
// Home row mods macro
|
|
|
|
#define HRML(k1,k2,k3,k4) &ht LSHFT k1 &ht LALT k2 &ht LCTRL k3 &ht LGUI k4
|
|
|
|
#define HRMR(k1,k2,k3,k4) &ht RGUI k1 &ht RCTRL k2 &ht RALT k3 &ht RSHFT k4
|
|
|
|
|
2024-08-10 09:09:50 +00:00
|
|
|
< {
|
|
|
|
tapping-term-ms = <200>;
|
2024-08-16 10:35:06 +00:00
|
|
|
quick-tap-ms = <200>;
|
2024-08-11 09:43:32 +00:00
|
|
|
flavor = "tap-preferred";
|
2024-08-11 09:47:48 +00:00
|
|
|
#binding-cells = <2>;
|
2024-08-10 09:09:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2024-08-09 17:20:17 +00:00
|
|
|
/ {
|
2024-08-09 20:36:56 +00:00
|
|
|
macros {
|
|
|
|
one: one {
|
|
|
|
compatible = "zmk,behavior-macro";
|
|
|
|
#binding-cells = <0>;
|
|
|
|
bindings = <¯o_tap &kp RALT &kp N7>;
|
|
|
|
};
|
|
|
|
|
|
|
|
two: two {
|
|
|
|
compatible = "zmk,behavior-macro";
|
|
|
|
#binding-cells = <0>;
|
|
|
|
bindings = <¯o_tap &kp RALT &kp N0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
three: three {
|
|
|
|
compatible = "zmk,behavior-macro";
|
|
|
|
#binding-cells = <0>;
|
|
|
|
bindings = <¯o_tap &kp RALT &kp N8>;
|
|
|
|
};
|
|
|
|
|
|
|
|
four: four {
|
|
|
|
compatible = "zmk,behavior-macro";
|
|
|
|
#binding-cells = <0>;
|
|
|
|
bindings = <¯o_tap &kp RALT &kp N9>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-08-09 17:20:17 +00:00
|
|
|
behaviors {
|
|
|
|
ht: hold_tap {
|
|
|
|
compatible = "zmk,behavior-hold-tap";
|
|
|
|
#binding-cells = <2>;
|
|
|
|
flavor = "tap-preferred";
|
2024-08-09 18:00:45 +00:00
|
|
|
tapping-term-ms = <200>;
|
2024-08-16 10:35:06 +00:00
|
|
|
quick-tap-ms = <200>;
|
2024-08-09 17:20:17 +00:00
|
|
|
require-prior-idle-ms = <100>;
|
|
|
|
bindings = <&kp>, <&kp>;
|
|
|
|
};
|
2024-08-11 08:42:00 +00:00
|
|
|
lt: layer_tap {
|
|
|
|
tapping-term-ms = <200>;
|
2024-08-16 10:35:06 +00:00
|
|
|
quick-tap-ms = <200>;
|
2024-08-11 09:43:32 +00:00
|
|
|
flavor = "tap-preferred";
|
2024-08-11 09:47:48 +00:00
|
|
|
#binding-cells = <2>;
|
2024-08-11 09:06:56 +00:00
|
|
|
};
|
2024-08-17 06:14:00 +00:00
|
|
|
md: mod_tap {
|
|
|
|
tapping-term-ms = <200>;
|
|
|
|
quick-tap-ms = <200>;
|
|
|
|
flavor = "tap-preferred";
|
|
|
|
#binding-cells = <2>;
|
|
|
|
};
|
2024-08-09 17:20:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
keymap {
|
|
|
|
compatible = "zmk,keymap";
|
|
|
|
default_layer {
|
|
|
|
bindings = <
|
|
|
|
//╭──────────┬──────────┬──────────┬──────────┬──────────╮ ╭──────────┬──────────┬──────────┬──────────┬──────────╮
|
|
|
|
//│ Q │ W │ E │ R │ T │ │ Y │ U │ I │ O │ P │
|
|
|
|
&kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P
|
|
|
|
//├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤
|
|
|
|
//│ A │ S │ D │ F │ G │ │ H │ J │ K │ L │ ' " │
|
2024-08-09 20:40:37 +00:00
|
|
|
&kp A &kp S &mt LALT D &mt LCTRL F &kp G &kp H &mt RCTRL J &mt RALT K &kp L &kp SEMI
|
2024-08-09 17:20:17 +00:00
|
|
|
//├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤
|
|
|
|
//│ Z │ X │ C │ V │ B │ │ N │ M │ , < │ . > │ / ? │
|
2024-08-09 20:36:56 +00:00
|
|
|
&mt LSHFT Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &mt RSHFT FSLH
|
2024-08-09 17:20:17 +00:00
|
|
|
//╰──────────┴──────────┴──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┴──────────┴──────────╯
|
2024-08-14 18:18:23 +00:00
|
|
|
&mt LGUI NUBS < 1 BSPC < 2 SPACE &mt LGUI TAB
|
2024-08-09 17:20:17 +00:00
|
|
|
// ╰──────────┴──────────╯ ╰──────────┴──────────╯
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
|
|
|
right_layer {
|
|
|
|
bindings = <
|
|
|
|
//╭──────────┬──────────┬──────────┬──────────┬──────────╮ ╭──────────┬──────────┬──────────┬──────────┬──────────╮
|
|
|
|
//│ INSERT │ 1 │ 2 │ 3 │ │ │ HOME │ PAGE DN │ PAGE UP │ END │ : │
|
2024-08-14 19:52:19 +00:00
|
|
|
&kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0
|
2024-08-09 17:20:17 +00:00
|
|
|
//├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤
|
|
|
|
//│ DELETE │ 4 │ 5 │ 6 │ │ │ LEFT │ DOWN │ UP │ RIGHT │ ; │
|
2024-08-14 19:52:19 +00:00
|
|
|
&kp ESC &kp HOME &kp PG_DN &kp PG_UP &kp END &kp LARW &kp DARW &kp UARW &kp RARW &kp SINGLE_QUOTE
|
2024-08-09 17:20:17 +00:00
|
|
|
//├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤
|
|
|
|
//│ CAPS │ 7 │ 8 │ 9 │ 0 │ │ │ │ │ │ │
|
2024-08-24 15:18:05 +00:00
|
|
|
&trans &trans &kp DEL &trans &bt BT_SEL 3 &bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &kp ENTER
|
2024-08-09 17:20:17 +00:00
|
|
|
//╰──────────┴──────────┴──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┴──────────┴──────────╯
|
2024-08-14 19:52:19 +00:00
|
|
|
&trans &trans &trans &trans
|
2024-08-09 17:20:17 +00:00
|
|
|
// ╰──────────┴──────────╯ ╰──────────┴──────────╯
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
|
|
|
left_layer {
|
|
|
|
bindings = <
|
|
|
|
//╭──────────┬──────────┬──────────┬──────────┬──────────╮ ╭──────────┬──────────┬──────────┬──────────┬──────────╮
|
|
|
|
//│ │ [ │ { │ } │ │ │ ^ │ ( │ ) │ ] │ ~ │
|
2024-08-15 19:59:16 +00:00
|
|
|
&kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10
|
2024-08-09 17:20:17 +00:00
|
|
|
//├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤
|
|
|
|
//│ ! │ @ │ # │ $ │ % │ │ * │ - │ = │ \ │ ` │
|
2024-08-16 06:20:51 +00:00
|
|
|
&kp TAB &kp BSLH &kp RA(N7) &kp RA(N0) &kp LS(NUMBER_4) &kp MINUS &kp EQUAL &kp LBKT &kp RBKT &kp LS(BSLH)
|
2024-08-09 17:20:17 +00:00
|
|
|
//├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤
|
|
|
|
//│ │ │ │ │ │ │ & │ _ │ + │ │ │ │
|
2024-08-16 06:01:55 +00:00
|
|
|
&trans &trans &kp RA(N8) &kp RA(N9) &trans &kp LS(MINUS) &kp LS(EQUAL) &kp PSCRN &trans &trans
|
2024-08-09 17:20:17 +00:00
|
|
|
//╰──────────┴──────────┴──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┴──────────┴──────────╯
|
|
|
|
&trans &trans &trans &trans
|
|
|
|
// ╰──────────┴──────────╯ ╰──────────┴──────────╯
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
|
|
|
tri_layer {
|
|
|
|
bindings = <
|
|
|
|
//╭──────────┬──────────┬──────────┬──────────┬──────────╮ ╭──────────┬──────────┬──────────┬──────────┬──────────╮
|
|
|
|
//│ RESET │ │ │ │PROFILE 0 │ │ │ │ │ │ RESET │
|
|
|
|
&sys_reset &trans &trans &trans &bt BT_SEL 0 &trans &trans &trans &trans &sys_reset
|
|
|
|
//├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤
|
|
|
|
//│BOOTLOADER│ │ │ │PROFILE 1 │ │ │ │ │ │BOOTLOADER│
|
|
|
|
&bootloader &trans &trans &trans &bt BT_SEL 1 &trans &trans &trans &trans &bootloader
|
|
|
|
//├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤
|
|
|
|
//│ │ │ │ CLEAR BT │PROFILE 2 │ │ │ │ │ │ │
|
|
|
|
&trans &trans &trans &bt BT_CLR &bt BT_SEL 2 &trans &trans &trans &trans &trans
|
|
|
|
//╰──────────┴──────────┴──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┴──────────┴──────────╯
|
|
|
|
&trans &trans &trans &trans
|
|
|
|
// ╰──────────┴──────────╯ ╰──────────┴──────────╯
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|