// Copyright (c) 2022 The ZMK Contributors // SPDX-License-Identifier: MIT // https://nickcoutsos.github.io/keymap-editor/ #include #include #include < { flavor = "tap-preferred"; tapping-term-ms = <150>; quick-tap-ms = <0>; }; / { behaviors { lhm: left_hand_positional_hold_tap { compatible = "zmk,behavior-hold-tap"; label = "LEFT_POSITIONAL_HOLD_TAP"; #binding-cells = <2>; flavor = "tap-preferred"; tapping-term-ms = <150>; quick-tap-ms = <0>; 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 10 11 12 13 15 16 17 18 19 25 26 27 28 29 30 31 32 33 34 35>; }; rhm: right_hand_positional_hold_tap { compatible = "zmk,behavior-hold-tap"; label = "RIGHT_POSITIONAL_HOLD_TAP"; #binding-cells = <2>; flavor = "tap-preferred"; tapping-term-ms = <150>; quick-tap-ms = <0>; 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 16 17 18 19 20 21 22 23 24 30 31 32 33 34 35>; }; }; conditional_layers { compatible = "zmk,conditional-layers"; tri_layer { if-layers = <1 2>; then-layer = <3>; }; }; keymap { compatible = "zmk,keymap"; default_layer { bindings = < &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &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 SEMICOLON &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH < 2 TAB &kp ENTER &kp SPACE < 1 BSPC >; }; right_layer { bindings = < &kp ESC &kp LBKT &kp LBRC &kp LPAR &kp TILDE &kp CARET &kp RPAR &kp RBRC &kp RBKT &kp GRAVE &kp MINUS &kp STAR &kp EQUAL &kp UNDERSCORE &kp DOLLAR &rhm RALT HASH &kp LGUI &kp LCTRL &kp LALT &kp LSHFT &kp PLUS &kp PIPE &kp AT &kp SINGLE_QUOTE &kp PERCENT &kp AMPERSAND &kp BACKSLASH &kp RA(SLASH) &kp QUESTION &kp EXCLAMATION &trans &trans &trans &trans >; }; left_layer { bindings = < &kp NUMBER_1 &kp NUMBER_2 &kp NUMBER_3 &kp NUMBER_4 &kp NUMBER_5 &kp NUMBER_6 &kp NUMBER_7 &kp NUMBER_8 &kp NUMBER_9 &kp NUMBER_0 &kp LSHFT &kp LALT &kp LCTRL &kp LGUI &kp BACKSPACE &kp LEFT &kp DOWN &kp UP &kp RIGHT &none &trans &kp C_MUTE &kp C_VOLUME_UP &kp C_VOLUME_DOWN &kp PRINTSCREEN &kp HOME &kp PG_DN &kp PG_UP &kp END &none &trans &trans &trans &trans >; }; tri_layer { bindings = < &sys_reset &trans &trans &trans &bt BT_SEL 0 &trans &trans &trans &trans &sys_reset &bootloader &trans &trans &trans &bt BT_SEL 1 &trans &trans &trans &trans &bootloader &trans &trans &trans &bt BT_CLR &bt BT_SEL 2 &trans &trans &trans &trans &trans &trans &trans &trans &trans >; }; }; };