/* * Copyright (c) 2020 The ZMK Contributors * * SPDX-License-Identifier: MIT */ #include #include #include #include #define NAV_L 1 #define OTH_L 2 #define NUM_L 3 #define SYM_L 4 #define FUN_L 5 #define MED_L 6 / { combos { compatible = "zmk,combos"; caps_word_combo { timeout-ms = <50>; key-positions = <16 19>; bindings = <&caps_word>; }; }; behaviors { hm: homerow_mods { compatible = "zmk,behavior-hold-tap"; label = "homerow mods"; #binding-cells = <2>; tapping_term_ms = <200>; flavor = "tap-preferred"; bindings = <&kp>, <&kp>; }; }; keymap { compatible = "zmk,keymap"; default_layer { // ------------------------------------------------------------------------------------- // | TAB | Q | W | E | R | T | | Y | U | I | O | P | BKSP | // | CTRL | A | S | D | F | G | | H | J | K | L | ; | ' | // | SHFT | Z | X | C | V | B | | N | M | , | . | / | SHFT(RET) | // | ALT | LWR | SPC | RSE | ALT | bindings = < &bl BL_TOG &kp Q &kp W &kp F &kp P &kp B &kp J &kp L &kp U &kp Y &kp QUOT &bootloader &none &hm LGUI A &hm LALT R &hm LCTRL S &hm LSHFT T &kp G &kp M &hm RSHFT N &hm RCTRL E &hm LALT I &hm LGUI O &none &none &kp Z &kp X &kp C &kp D &kp V &kp K &kp H &kp COMMA &kp DOT &kp FSLH &none < NAV_L TAB < OTH_L RET &kp RET < NUM_L SPACE < SYM_L BKSP >; }; nav_layer { label = "Nav"; bindings = < &none &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &none &none &trans &trans &trans &trans &trans &trans &kp LARW &kp DARW &kp UARW &kp RARW &none &none &trans &trans &trans &trans &trans &trans &kp HOME &kp PG_DN &kp PG_UP &kp END &none &trans &trans &trans &kp ESC &kp DEL >; }; other_layer { label = "Other"; bindings = < &none &trans &trans &trans &trans &trans &trans &trans &trans &trans &bt BT_CLR &none &none &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &none &none &trans &trans &trans &trans &trans &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &none &trans &trans &trans &trans &trans >; }; num_layer { label = "Num"; bindings = < &none &kp LBKT &kp N7 &kp N8 &kp N9 &kp RBKT &trans &trans &trans &trans &trans &none &none &kp SEMI &kp N4 &kp N5 &kp N6 &kp EQUAL &trans &trans &trans &trans &trans &none &none &kp GRAVE &kp N1 &kp N2 &kp N3 &kp BSLH &trans &trans &trans &trans &trans &none &kp N0 &kp MINUS &trans &trans &trans >; }; sym_layer { label = "Sym"; bindings = < &none &kp LBRC &kp LS(N7) &kp LS(N8) &kp LS(N9) &kp RBRC &trans &trans &trans &trans &trans &none &none &kp COLON &kp LS(N4) &kp LS(N5) &kp LS(N6) &kp PLUS &trans &trans &trans &trans &trans &none &none &kp TILDE &kp LS(N1) &kp LS(N2) &kp LS(N3) &kp LS(BSLH) &trans &trans &trans &trans &trans &none &kp LS(N0) &kp UNDER &trans &trans &trans >; }; }; };