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 {
|
2023-04-27 14:27:15 +01:00
|
|
|
lmod: lmod {
|
|
|
|
compatible = "zmk,behavior-tap-dance";
|
|
|
|
label = "LMOD";
|
|
|
|
#binding-cells = <0>;
|
2023-04-13 11:08:55 +01:00
|
|
|
bindings =
|
2023-04-27 14:27:15 +01:00
|
|
|
<&kp LCTRL>,
|
|
|
|
<&kp LALT>;
|
|
|
|
};
|
|
|
|
rmod: rmod {
|
|
|
|
compatible = "zmk,behavior-tap-dance";
|
|
|
|
label = "RMOD";
|
|
|
|
#binding-cells = <0>;
|
|
|
|
bindings =
|
|
|
|
<&kp LCTRL>,
|
|
|
|
<&kp LEFT_META>;
|
2023-04-13 11:08:55 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
combos {
|
|
|
|
compatible = "zmk,combos";
|
2023-04-13 11:49:07 +01:00
|
|
|
|
2023-04-13 12:49:51 +01:00
|
|
|
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-27 14:27:15 +01:00
|
|
|
&kp TAB &kp Q &kp W &kp F &kp P &kp G &kp J &kp L &kp U &kp Y &kp SEMI &kp INS
|
|
|
|
&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 LEFT_SHIFT &kp Z &kp X &kp C &kp V &kp B &kp K &kp M &kp COMMA &kp DOT &kp FSLH &kp RSHFT
|
|
|
|
&lmod &mo 1 &kp SPACE &kp ENTER &mo 2 &rmod
|
2023-04-13 11:08:55 +01:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
2023-04-27 14:31:56 +01:00
|
|
|
navigation {
|
2023-04-13 11:08:55 +01:00
|
|
|
bindings = <
|
2023-04-27 10:46:17 +01:00
|
|
|
&kp ESC &trans &kp PAGE_DOWN &kp UP &kp PAGE_UP &kp KP_MULTIPLY &kp KP_NUMBER_7 &kp KP_NUMBER_8 &kp KP_NUMBER_9 &kp KP_PLUS &kp KP_MINUS &trans
|
|
|
|
&kp DEL &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 &kp BACKSPACE
|
2023-04-27 14:08:24 +01:00
|
|
|
&trans &trans &trans &trans &trans &trans &kp KP_NUMBER_1 &kp KP_NUMBER_2 &kp KP_NUMBER_3 &kp KP_DOT &kp KP_EQUAL &trans
|
2023-04-27 14:31:56 +01:00
|
|
|
&trans &trans &trans &trans &mo 3 &kp KP_N0
|
2023-04-13 11:08:55 +01:00
|
|
|
>;
|
2023-04-27 14:31:56 +01:00
|
|
|
|
|
|
|
label = "navigation";
|
2023-04-13 11:08:55 +01:00
|
|
|
};
|
|
|
|
|
2023-04-27 14:31:56 +01:00
|
|
|
punctuation {
|
2023-04-13 11:08:55 +01:00
|
|
|
bindings = <
|
2023-04-27 14:11:44 +01:00
|
|
|
&kp F1 &mt N1 F2 &mt N2 F3 &mt N3 F4 &mt N4 F5 &mt N5 F6 &mt N6 F7 &mt N7 F8 &mt N8 F9 &mt N9 F10 &mt N0 F11 &kp F12
|
|
|
|
&trans &kp LS(N1) &kp LS(N2) &kp LS(N3) &kp LS(N4) &kp LS(N5) &kp RS(N6) &kp RS(N7) &kp RS(N8) &kp RS(N9) &kp RS(N0) &trans
|
|
|
|
&trans &kp NUBS &kp PIPE &kp NUHS &kp MINUS &kp UNDER &kp LS(NUMBER_2) &kp SINGLE_QUOTE &kp DOUBLE_QUOTES &kp LEFT_BRACKET &kp RIGHT_BRACKET &trans
|
|
|
|
&trans &mo 3 &trans &trans &trans &trans
|
2023-04-13 11:08:55 +01:00
|
|
|
>;
|
2023-04-27 14:31:56 +01:00
|
|
|
|
|
|
|
label = "punctuation";
|
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
|
|
|
};
|