diff --git a/config/adv360.keymap b/config/adv360.keymap index 9b8a6f1b37..4eb2539240 100644 --- a/config/adv360.keymap +++ b/config/adv360.keymap @@ -1,79 +1,170 @@ - #include -#include +#include #include +#include #include -#include - -#define HYPER LS(LC(LALT)) / { - behaviors { - #include "macros.dtsi" - - 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>; - global-quick-tap; + behaviors { + #include "macros.dtsi" + #include "version.dtsi" + #ifndef VERSION_MACRO + + macro_ver: macro_ver { + compatible = "zmk,behavior-macro"; + label = "macro_version"; + #binding-cells = <0>; + bindings = <&kp RET>; + }; + + #endif + + hm: homerow_mods { + compatible = "zmk,behavior-hold-tap"; + label = "HOMEROW_MODS"; + #binding-cells = <2>; + tapping-term-ms = <200>; + quick_tap_ms = <175>; + flavor = "tap-preferred"; + bindings = <&kp>, <&kp>; + }; + + // Home row mod behaviors + + left_pinky: homey_left_pinky { + compatible = "zmk,behavior-hold-tap"; + flavor = "tap-preferred"; + tapping-term-ms = <270>; + quick-tap-ms = <300>; + require-prior-idle-ms = <250>; + #binding-cells = <2>; + bindings = <&kp>, <&kp>; + }; + + right_pinky: homey_right_pinky { + compatible = "zmk,behavior-hold-tap"; + flavor = "tap-preferred"; + tapping-term-ms = <270>; + quick-tap-ms = <300>; + require-prior-idle-ms = <250>; + #binding-cells = <2>; + bindings = <&kp>, <&kp>; + }; + + left_ring1: homey_left_ring1 { + compatible = "zmk,behavior-hold-tap"; + flavor = "tap-preferred"; + tapping-term-ms = <270>; + quick-tap-ms = <300>; + require-prior-idle-ms = <250>; + #binding-cells = <2>; + bindings = <&kp>, <&kp>; + }; + + right_ring1: homey_right_ring1 { + compatible = "zmk,behavior-hold-tap"; + flavor = "tap-preferred"; + tapping-term-ms = <270>; + quick-tap-ms = <300>; + require-prior-idle-ms = <250>; + #binding-cells = <2>; + bindings = <&kp>, <&kp>; + }; + + left_middy: homey_left_middy { + compatible = "zmk,behavior-hold-tap"; + flavor = "tap-preferred"; + tapping-term-ms = <270>; + quick-tap-ms = <300>; + require-prior-idle-ms = <250>; + #binding-cells = <2>; + bindings = <&kp>, <&kp>; + }; + + right_middy: homey_right_middy { + compatible = "zmk,behavior-hold-tap"; + flavor = "tap-preferred"; + tapping-term-ms = <270>; + quick-tap-ms = <300>; + require-prior-idle-ms = <250>; + #binding-cells = <2>; + bindings = <&kp>, <&kp>; + }; + + left_index: homey_left_index { + compatible = "zmk,behavior-hold-tap"; + flavor = "balanced"; + tapping-term-ms = <150>; + quick-tap-ms = <250>; + require-prior-idle-ms = <100>; + #binding-cells = <2>; + bindings = <&kp>, <&kp>; + }; + + right_index: homey_right_index { + compatible = "zmk,behavior-hold-tap"; + flavor = "balanced"; + tapping-term-ms = <150>; + quick-tap-ms = <250>; + require-prior-idle-ms = <100>; + #binding-cells = <2>; + bindings = <&kp>, <&kp>; + }; + + thumb_layer_tap: thumb_layer_hold_tap { + compatible = "zmk,behavior-hold-tap"; + flavor = "balanced"; + tapping-term-ms = <200>; + quick-tap-ms = <150>; + global-quick-tap; + #binding-cells = <2>; + bindings = <&mo>, <&kp>; + }; + }; + + macros { }; - }; keymap { compatible = "zmk,keymap"; - default_layer { bindings = < -// Row 1 -&kp EQUAL &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &mo 3 &mo 3 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp MINUS -// Row 2 -&kp TAB &kp Q &kp W &kp F &kp P &kp B &tog 0 &none &kp J &kp L &kp O &kp Y &kp SEMI &kp BSLH -// Row 3, with 4 middle bottons -&kp ESC &kp A &kp R &kp S &kp T &kp G &tog 2 &mo 2 &kp LEFT_ALT &kp PG_UP &kp LEFT_META &kp LEFT_SHIFT &kp M &kp N &kp E &kp I &kp U &kp SQT -// Row 4 Left - 6 -&kp LSHFT &kp Z &kp X &hm LEFT_CONTROL C &hm LEFT_GUI D &kp V &none &none &kp LEFT_SHIFT &none &none &kp PG_DN &none &none &kp K &hm RIGHT_GUI H &hm RIGHT_CONTROL COMMA &kp DOT &kp FSLH &kp RSHFT -// Row 4 Left - 6 -&mo 2 &kp GRAVE &none &kp LEFT_ARROW &kp RIGHT_ARROW -// Left bottom thumb cluster -&kp ESCAPE &kp SPACE < 1 TAB -// Right bottom thumb cluster -< 2 ENTER &hm RIGHT_SHIFT BACKSPACE &kp HYPER -&kp UP_ARROW &kp DOWN_ARROW &kp LBKT &kp RBKT &mo 2 +&kp EQUAL &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &tog 1 &mo 3 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp MINUS +&kp TAB &kp Q &kp W &kp F &kp P &kp B &none &none &kp J &kp L &kp O &kp Y &kp SEMI &kp BSLH +&kp ESC &left_pinky RALT A &left_ring1 RCTRL R &left_middy RGUI S &left_index RSHFT T &kp G &none &kp LCTRL &kp LALT &kp LGUI &kp RCTRL &none &kp M &right_index RSHFT N &right_middy RGUI E &right_ring1 RCTRL I &right_pinky RALT U &kp SQT +&kp LSHFT &kp Z &kp X &kp C &kp D &kp V &kp HOME &kp PG_UP &kp K &kp H &kp COMMA &kp DOT &kp FSLH &kp RSHFT +&mo 2 &kp GRAVE &kp CAPS &kp LEFT &kp RIGHT &thumb_layer_tap 1 ESC &kp SPACE &kp TAB &kp RET &kp BSPC &thumb_layer_tap 2 DELETE &kp UP &kp DOWN &kp LBKT &kp RBKT &mo 2 >; }; - layer_keypad { + keypad { bindings = < - &kp EQUAL &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &trans &mo 3 &kp N6 &kp KP_NUM &kp KP_EQUAL &kp KP_DIVIDE &kp KP_MULTIPLY &kp MINUS - &kp TAB &kp LEFT_BRACKET &kp NUMBER_7 &kp NUMBER_8 &kp NUMBER_9 &kp RIGHT_BRACKET &trans &trans &kp Y &kp KP_N7 &kp KP_N8 &kp KP_N9 &kp KP_MINUS &kp BSLH - &kp ESC &kp SEMICOLON &kp NUMBER_4 &kp N5 &kp N6 &kp EQUAL &none &trans &trans &trans &trans &trans &kp H &kp KP_N4 &kp KP_N5 &kp KP_N6 &kp KP_PLUS &kp SQT - &kp LSHFT &kp GRAVE &kp N1 &kp N2 &kp N3 &kp BACKSLASH &none &none &trans &none &none &trans &none &none &kp N &kp KP_N1 &kp KP_N2 &kp KP_N3 &kp KP_ENTER &kp RSHFT - &mo 2 &kp GRAVE &kp CAPS &kp LEFT &kp RIGHT &trans &trans &trans &trans &trans &trans &kp UP &kp DOWN &kp KP_DOT &kp RBKT &mo 2 +&trans &trans &trans &trans &trans &trans &trans &trans &trans &kp KP_NUM &kp KP_EQUAL &kp KP_DIVIDE &kp KP_MULTIPLY &trans +&trans &none &none &none &none &none &none &none &none &kp KP_N7 &kp KP_N8 &kp KP_N9 &kp KP_MINUS &trans +&trans &none &none &none &none &none &none &trans &trans &trans &trans &none &none &kp KP_N4 &kp KP_N5 &kp KP_N6 &kp KP_PLUS &trans +&trans &none &none &none &none &none &trans &trans &none &kp KP_N1 &kp KP_N2 &kp KP_N3 &kp KP_ENTER &trans +&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &kp KP_N0 &kp KP_N0 &kp KP_DOT &trans &trans >; }; - layer_fn { + fn { bindings = < - &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &trans &mo 3 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12 - &trans &trans &trans &trans &trans &trans &trans &trans &kp K_REDO &kp K_PASTE &kp K_COPY &kp K_CUT &kp K_UNDO &trans - &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &none &kp LEFT_ARROW &kp DOWN_ARROW &kp UP_ARROW &kp RIGHT_ARROW &trans - &trans &trans &trans &trans &trans &trans &none &none &trans &none &none &trans &none &none &kp INSERT &trans &kp PAGE_DOWN &kp PAGE_UP &kp END &trans - &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &kp UP_ARROW &kp DOWN_ARROW &trans &trans &trans +&kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &tog 1 &mo 3 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12 +&trans &trans &trans &trans &trans &trans &none &none &trans &trans &trans &trans &trans &trans +&trans &trans &trans &trans &trans &trans &none &trans &trans &trans &trans &none &trans &trans &trans &trans &trans &trans +&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans +&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans >; }; - layer_mod { + mod { bindings = < - &none &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &tog 0 &trans &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &none - &none &none &none &none &none &none &bootloader &bootloader &none &none &none &none &none &none - &none &none &none &none &none &none &rgb_ug RGB_MEFS_CMD 5 &bt BT_CLR &none &bt BT_CLR &bt BT_CLR &rgb_ug RGB_MEFS_CMD 5 &none &none &none &none &none &none - &none &none &none &none &none &none &none &none &none &none &none &none &none &none &none &none &none &none &none &none - &none &none &none &bl BL_INC &bl BL_DEC &rgb_ug RGB_TOG &bl BL_TOG &none &none &bl BL_TOG &rgb_ug RGB_TOG &bl BL_INC &bl BL_DEC &none &none &none +&none &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &none &trans &none &none &none &none &none &none +&none &none &none &none &none &none &bootloader &bootloader &none &none &none &none &none &none +&none &none &none &none &none &none &none &none &none &bt BT_CLR &none &rgb_ug RGB_MEFS_CMD 5 &none &none &none &none &none &none +&none &none &none &none ¯o_ver &none &none &none &none &none &none &none &none &none +&none &none &none &none &none &none &none &none &none &bl BL_TOG &rgb_ug RGB_TOG &bl BL_INC &bl BL_DEC &none &none &none >; }; };