From 8c0f1328699e1b99b89387fe703d48a0c1e7eab4 Mon Sep 17 00:00:00 2001 From: Andrew Rae Date: Tue, 15 Mar 2022 21:57:35 -0400 Subject: [PATCH] trying out key repeat! --- config/rae_dux.keymap | 74 +++++++++++++++++++++++++------------------ 1 file changed, 44 insertions(+), 30 deletions(-) diff --git a/config/rae_dux.keymap b/config/rae_dux.keymap index 873d2bb..ab47549 100644 --- a/config/rae_dux.keymap +++ b/config/rae_dux.keymap @@ -17,11 +17,11 @@ continue-list = ; }; -#define RSTHD 0 -#define NUM 1 -#define SYM 2 -#define NAV 3 -#define FUN 4 +#define RSTHD_L 0 +#define NUM_L 1 +#define SYM_L 2 +#define NAV_L 3 +#define FUN_L 4 #define MY_PSCRN LS(LC(PSCRN)) #define MY_COPY LC(INSERT) @@ -53,12 +53,17 @@ COMBO(caps_word_right, &caps_word, 26 27, 60) COMBO(caps_word_left, &caps_word, 22 23, 60) - COMBO(colon, &kp COLON, 7 8, 60) - COMBO(semicolon, &kp SEMI, 1 2, 60) + + COMBO(colon, &kp COLON, 6 7, 60) + COMBO(semicolon, &kp SEMI, 7 8, 60) + + COMBO(slash, &kp FSLH, 1 2, 60) + COMBO(underscore, &kp UNDER, 31 32, 100) COMBO(minus, &kp MINUS, 33 34, 100) + COMBO(equal, &kp EQUAL, 17 26, 60) - COMBO(slash, &kp SLASH, 12 23, 60) + COMBO(enter, &kp ENTER, 12 23, 60) }; behaviors { @@ -79,7 +84,7 @@ #binding-cells = <2>; flavor = "tap-preferred"; tapping-term-ms = <200>; - quick-tap-ms = <200>; + quick-tap-ms = <300>; bindings = <&kp>, <&kp>; // hold-trigger-key-positions = <0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17>; }; @@ -90,19 +95,19 @@ #binding-cells = <2>; flavor = "tap-preferred"; tapping-term-ms = <200>; - quick-tap-ms = <200>; + quick-tap-ms = <300>; bindings = <&mo>, <&kp>; }; - hold_lt: layer_hold_tap { + rpt_lt: repeat_hold_tap { compatible = "zmk,behavior-hold-tap"; label = "LAYER_HOLD_TAP"; #binding-cells = <2>; - flavor = "hold-preferred"; + flavor = "tap-preferred"; tapping-term-ms = <200>; - quick-tap-ms = <200>; - bindings = <&mo>, <&kp>; + quick-tap-ms = <300>; + bindings = <&mo>, <&key_repeat>; }; }; @@ -112,37 +117,46 @@ // RSTHD rsthd_layer { bindings = < - &kp Z &kp C &kp Y &kp F &kp P &kp X &kp M &kp APOS &kp U &kp Q - &lhm LALT R &lhm LSHFT S &lhm LCTRL T &lhm LGUI H &kp D &kp L &rhm LGUI N &rhm LCTRL A &rhm LSHFT I &rhm LALT O - &sk LSHIFT &kp V &kp G &kp K &kp B &kp W &kp J &kp COMMA &kp DOT &sk LSHIFT - /*& &*/ &kp ESC &base_lt NAV SPC &hold_lt SYM ENTER &base_lt SYM BSPC &base_lt NUM E &kp TAB /* & &*/ + &kp Z &kp C &kp Y &kp F &kp P &kp X &kp M &kp APOS &kp U &kp Q + &lhm LALT R &lhm LSHFT S &lhm LCTRL T &lhm LGUI H &kp D &kp L &rhm LGUI N &rhm LCTRL A &rhm LSHFT I &rhm LALT O + &sk LSHIFT &kp V &kp G &kp K &kp B &kp W &kp J &kp COMMA &kp DOT &sk LSHIFT + /*& &*/ &kp ESC &base_lt NAV_L SPC &rpt_lt SYM_L 0 &base_lt SYM_L BSPC &base_lt NUM_L E &base_lt FUN_L TAB /* & &*/ >; }; num_layer { bindings = < - &trans &kp LT &kp MINUS &kp GT &trans &trans &trans &kp EQUAL &trans &trans - &lhm LALT N3 &lhm LSHFT N2 &lhm LCTRL N1 &lhm LGUI N0 &kp N4 &kp N5 &rhm LGUI N6 &rhm LCTRL N7 &rhm LSHFT N8 &rhm LALT N9 - &kp FSLH &kp PLUS &kp CARET &kp STAR &trans &trans &trans &kp COMMA &kp DOT &trans - /*& &*/ &trans &trans &trans &trans &trans &trans /* & &*/ + &trans &kp LT &kp MINUS &kp GT &trans &trans &trans &kp EQUAL &trans &trans + &lhm LALT N3 &lhm LSHFT N2 &lhm LCTRL N1 &lhm LGUI N0 &kp N4 &kp N5 &rhm LGUI N6 &rhm LCTRL N7 &rhm LSHFT N8 &rhm LALT N9 + &kp FSLH &kp PLUS &kp CARET &kp STAR &trans &trans &trans &kp COMMA &kp DOT &trans + /*& &*/ &trans &trans &trans &trans &trans &trans /* & &*/ >; }; sym_layer { bindings = < - &trans &kp EXCL &kp AT &kp DLLR &trans &trans &kp TILDE &kp EQUAL &kp BSLH &trans - &kp HASH &kp LT &kp MINUS &kp GT &kp GRAVE &kp AMPS &kp LBRC &kp LPAR &kp RPAR &kp PIPE - &kp FSLH &kp PLUS &kp CARET &kp STAR &kp UNDER &kp PRCNT &kp RBRC &kp LBKT &kp RBKT &trans - /*& &*/ &trans &trans &trans &trans &trans &trans /* & &*/ + &trans &kp EXCL &kp AT &kp DLLR &trans &trans &kp TILDE &kp EQUAL &kp BSLH &trans + &kp HASH &kp LT &kp MINUS &kp GT &kp GRAVE &kp AMPS &kp LBRC &kp LPAR &kp RPAR &kp PIPE + &kp FSLH &kp PLUS &kp CARET &kp STAR &kp UNDER &kp PRCNT &kp RBRC &kp LBKT &kp RBKT &trans + /*& &*/ &trans &trans &trans &trans &trans &trans /* & &*/ >; }; nav_layer { bindings = < - &trans &kp PSCRN &kp MY_COPY &kp MY_PSCRN &kp MY_PASTE &trans &kp C_BRI_DEC &kp C_BRI_INC &kp VI_U &trans - &kp END &kp C_NEXT &kp C_PP &kp C_VOL_UP &kp DEL &kp LEFT &kp DOWN &kp UP &kp RIGHT &kp HOME - &trans &kp C_PREV &kp C_MUTE &kp C_VOL_DN &kp UNDER &kp VI_B &kp PG_DN &kp PG_UP &kp VI_W &trans - /*& &*/ &trans &trans &trans &bt BT_PRV &bt BT_NXT &bt BT_CLR /* & &*/ + &trans &kp PSCRN &kp MY_COPY &kp MY_PSCRN &kp MY_PASTE &trans &kp C_BRI_DEC &kp C_BRI_INC &kp VI_U &trans + &kp END &kp C_NEXT &kp C_PP &kp C_VOL_UP &kp DEL &kp LEFT &kp DOWN &kp UP &kp RIGHT &kp HOME + &trans &kp C_PREV &kp C_MUTE &kp C_VOL_DN &kp UNDER &kp VI_B &kp PG_DN &kp PG_UP &kp VI_W &trans + /*& &*/ &trans &trans &trans &bt BT_PRV &bt BT_NXT &bt BT_CLR /* & &*/ + >; + }; + + function_layer { + bindings = < + &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans + &kp F3 &kp F2 &kp F1 &kp F0 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 + &trans &kp F12 &kp F11 &kp F10 &trans &trans &trans &trans &trans &trans + /*& &*/ &trans &trans &trans &trans &trans &trans /* & &*/ >; }; };