2023-04-13 11:08:55 +01: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>
|
|
|
|
|
|
|
|
// dt-formatter: indent = " "
|
|
|
|
// dt-formatter: reindentMultilineIntegerCells = "dedent"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
behaviors {
|
|
|
|
hm: homerow_mods {
|
|
|
|
compatible = "zmk,behavior-hold-tap";
|
|
|
|
label = "HOMEROW_MODS";
|
|
|
|
#binding-cells = <2>;
|
|
|
|
tapping-term-ms = <150>;
|
|
|
|
quick-tap-ms = <0>;
|
|
|
|
flavor = "tap-preferred";
|
|
|
|
bindings =
|
|
|
|
<&kp>,
|
|
|
|
<&kp>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
combos {
|
|
|
|
compatible = "zmk,combos";
|
2023-04-13 11:49:07 +01:00
|
|
|
|
2023-04-13 12:49:51 +01:00
|
|
|
escape {
|
|
|
|
bindings = <&kp ESC>;
|
|
|
|
key-positions = <12 23>;
|
|
|
|
};
|
|
|
|
|
|
|
|
capslock {
|
|
|
|
bindings = <&kp CAPS>;
|
|
|
|
key-positions = <24 35>;
|
2023-04-13 11:49:07 +01:00
|
|
|
};
|
2023-04-13 11:08:55 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
macros {
|
|
|
|
};
|
|
|
|
|
|
|
|
keymap {
|
|
|
|
compatible = "zmk,keymap";
|
|
|
|
|
|
|
|
base {
|
|
|
|
bindings = <
|
2023-04-14 15:17:51 +01:00
|
|
|
&mt ESC TAB &kp Q &kp W &kp F &kp P &kp G &kp J &kp L &kp U &kp Y &kp SEMI &kp INS
|
2023-04-13 15:50:52 +01:00
|
|
|
&kp BACKSPACE &kp A &kp R &kp S &kp T &kp D &kp H &kp N &kp E &kp I &kp O &kp DEL
|
|
|
|
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp K &kp M &kp COMMA &kp DOT &kp FSLH &kp RSHFT
|
|
|
|
&kp LEFT_META &mo 1 &mt LEFT_CONTROL SPACE &mt RCTRL ENTER &mo 2 &kp LEFT_ALT
|
2023-04-13 11:08:55 +01:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
|
|
|
raise {
|
|
|
|
bindings = <
|
2023-04-25 10:46:05 +01:00
|
|
|
&trans &trans &kp PAGE_DOWN &kp UP &kp PAGE_UP &trans &kp KP_NUMBER_7 &kp KP_NUMBER_8 &kp KP_NUMBER_9 &kp KP_PLUS &kp KP_MINUS &trans
|
|
|
|
&kp DELETE &kp HOME &kp LEFT &kp DOWN &kp RIGHT &kp END &kp KP_NUMBER_4 &kp KP_NUMBER_5 &kp KP_NUMBER_6 &kp KP_MULTIPLY &kp KP_DIVIDE &trans
|
|
|
|
&trans &trans &trans &trans &trans &trans &kp KP_NUMBER_1 &kp KP_NUMBER_2 &kp KP_NUMBER_3 &kp KP_COMMA &kp KP_DOT &trans
|
|
|
|
&trans &trans &trans &kp KP_NUMBER_0 &mo 3 &kp KP_EQUAL
|
2023-04-13 11:08:55 +01:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
|
|
|
lower {
|
|
|
|
bindings = <
|
2023-04-25 11:06:14 +01:00
|
|
|
&mt F1 N1 &mt LS(F2) N2 &mt LS(F3) N3 &mt LS(F4) N4 &mt LS(F5) N5 &mt LS(F6) NUMBER_6 &mt RS(F7) NUMBER_7 &mt RS(F8) NUMBER_8 &mt RS(F9) NUMBER_9 &mt RS(F10) NUMBER_0 &mt RS(F11) MINUS &mt F12 EQUAL
|
|
|
|
&trans &trans &trans &trans &trans &trans &kp SINGLE_QUOTE &kp NON_US_HASH &kp LBKT &kp RBKT &kp GRAVE &trans
|
|
|
|
&trans &trans &trans &trans &trans &trans &kp NON_US_BSLH &kp COMMA &kp PERIOD &kp SLASH &kp PIPE &trans
|
|
|
|
&trans &mo 3 &trans &trans &trans &trans
|
2023-04-13 11:08:55 +01:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
|
|
|
both {
|
|
|
|
bindings = <
|
2023-04-14 15:17:51 +01:00
|
|
|
&trans &trans &trans &trans &trans &bt BT_SEL 0 &bt BT_SEL 3 &trans &trans &trans &trans &trans
|
|
|
|
&trans &kp K_STOP &kp K_VOL_DN &kp K_VOL_UP &kp K_PLAY_PAUSE &bt BT_SEL 1 &bt BT_SEL 4 &trans &trans &trans &trans &trans
|
|
|
|
&trans &trans &trans &trans &trans &bt BT_SEL 2 &bt BT_CLR &trans &trans &trans &trans &trans
|
|
|
|
&trans &trans &trans &trans &trans &trans
|
2023-04-13 11:08:55 +01:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
};
|
2023-04-13 11:30:05 +01:00
|
|
|
};
|