trying out key repeat!

This commit is contained in:
Andrew Rae 2022-03-15 21:57:35 -04:00
parent 38960cf959
commit 8c0f132869

View file

@ -17,11 +17,11 @@
continue-list = <UNDERSCORE MINUS BSPC>; continue-list = <UNDERSCORE MINUS BSPC>;
}; };
#define RSTHD 0 #define RSTHD_L 0
#define NUM 1 #define NUM_L 1
#define SYM 2 #define SYM_L 2
#define NAV 3 #define NAV_L 3
#define FUN 4 #define FUN_L 4
#define MY_PSCRN LS(LC(PSCRN)) #define MY_PSCRN LS(LC(PSCRN))
#define MY_COPY LC(INSERT) #define MY_COPY LC(INSERT)
@ -53,12 +53,17 @@
COMBO(caps_word_right, &caps_word, 26 27, 60) COMBO(caps_word_right, &caps_word, 26 27, 60)
COMBO(caps_word_left, &caps_word, 22 23, 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(underscore, &kp UNDER, 31 32, 100)
COMBO(minus, &kp MINUS, 33 34, 100) COMBO(minus, &kp MINUS, 33 34, 100)
COMBO(equal, &kp EQUAL, 17 26, 60) COMBO(equal, &kp EQUAL, 17 26, 60)
COMBO(slash, &kp SLASH, 12 23, 60) COMBO(enter, &kp ENTER, 12 23, 60)
}; };
behaviors { behaviors {
@ -79,7 +84,7 @@
#binding-cells = <2>; #binding-cells = <2>;
flavor = "tap-preferred"; flavor = "tap-preferred";
tapping-term-ms = <200>; tapping-term-ms = <200>;
quick-tap-ms = <200>; quick-tap-ms = <300>;
bindings = <&kp>, <&kp>; 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>; // 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>; #binding-cells = <2>;
flavor = "tap-preferred"; flavor = "tap-preferred";
tapping-term-ms = <200>; tapping-term-ms = <200>;
quick-tap-ms = <200>; quick-tap-ms = <300>;
bindings = <&mo>, <&kp>; bindings = <&mo>, <&kp>;
}; };
hold_lt: layer_hold_tap { rpt_lt: repeat_hold_tap {
compatible = "zmk,behavior-hold-tap"; compatible = "zmk,behavior-hold-tap";
label = "LAYER_HOLD_TAP"; label = "LAYER_HOLD_TAP";
#binding-cells = <2>; #binding-cells = <2>;
flavor = "hold-preferred"; flavor = "tap-preferred";
tapping-term-ms = <200>; tapping-term-ms = <200>;
quick-tap-ms = <200>; quick-tap-ms = <300>;
bindings = <&mo>, <&kp>; bindings = <&mo>, <&key_repeat>;
}; };
}; };
@ -112,37 +117,46 @@
// RSTHD // RSTHD
rsthd_layer { rsthd_layer {
bindings = < bindings = <
&kp Z &kp C &kp Y &kp F &kp P &kp X &kp M &kp APOS &kp U &kp Q &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 &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 &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 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 { num_layer {
bindings = < bindings = <
&trans &kp LT &kp MINUS &kp GT &trans &trans &trans &kp EQUAL &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 &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 &kp FSLH &kp PLUS &kp CARET &kp STAR &trans &trans &trans &kp COMMA &kp DOT &trans
/*& &*/ &trans &trans &trans &trans &trans &trans /* & &*/ /*& &*/ &trans &trans &trans &trans &trans &trans /* & &*/
>; >;
}; };
sym_layer { sym_layer {
bindings = < bindings = <
&trans &kp EXCL &kp AT &kp DLLR &trans &trans &kp TILDE &kp EQUAL &kp BSLH &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 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 &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 &trans &trans &trans &trans &trans /* & &*/
>; >;
}; };
nav_layer { nav_layer {
bindings = < 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 &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 &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 &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 &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 /* & &*/
>; >;
}; };
}; };