Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Incblob committed Nov 3, 2024
1 parent 7fa5741 commit cff12bc
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 21 deletions.
10 changes: 7 additions & 3 deletions config/boards/shields/horizon/behaviors.dtsi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

#define my_tapping_term 170

#define TD_template compatible = "zmk,behavior-tap-dance"; #binding-cells = <0>; tapping-term-ms = <my_tapping_term>
#define TD_template compatible = "zmk,behavior-tap-dance"; #binding-cells = <0>; tapping-term-ms = <200>

#define my_hrm_config \
compatible = "zmk,behavior-hold-tap"; \
Expand Down Expand Up @@ -47,7 +47,7 @@ behaviors {
TD_template;
bindings = <&mt &colon_space_cap &dot_space_cap>
, <AS(DOT)>
, <&kp DOT &kp DOT &kp DOT>;
, <&dotdotdot>;
};

td_comma: td_comma {
Expand All @@ -66,7 +66,11 @@ behaviors {
TD_template;
bindings = <&mt &macro_QU_cap &macro_QU>, <AS(Q)>;
};


td_qu_test: td_qu_test {
TD_template;
bindings = <&macro_QU>, <&macro_QU_cap>;
};
// shift_qu: shift_qu_macro {
// my_lk_config;
// bindings = <&macro_QU_cap>, <&macro_QU>;
Expand Down
4 changes: 2 additions & 2 deletions config/boards/shields/horizon/combos.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ combos {

COMBO_LAYER(enter, &mt LS(ENTER) ENTER, RB3 RB4, <l_ALPHA l_HD>)
COMBO_LAYER(ctl_bsb, &kp LC(BSPC), RB2 RB3, <l_ALPHA l_HD>)
COMBO_LAYER(end, &kp END, RM2 RM3, <l_L l_HD>)
COMBO_LAYER(home, &kp HOME, RM1 RM2, <l_L l_HD>)
COMBO_LAYER(end, &kp END, RM2 RM3, <l_ALPHA l_CODE l_L l_HD>)
COMBO_LAYER(home, &kp HOME, RM1 RM2, <l_ALPHA l_CODE l_L l_HD>)

//
// H Digraphs
Expand Down
37 changes: 23 additions & 14 deletions config/boards/shields/horizon/horizon_layers.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
default_layer {

bindings = <
&kp ESC AS(F12) AS(W) AS(F) AS(P) AS(B) AS(J) AS(L) AS(U) AS(Z) &as LC(G) LC(F) &kp LC(HOME)
&kp LSHFT AS(Q) AS(R) AS(S) AS(T) AS(G) AS(M) AS(N) AS(E) AS(I) AS(NON_US_HASH) &kp LC(END)
AS(TAB) AS(A) AS(X) AS(C) AS(D) AS(V) &kp LS(LC(LALT)) &caps_word AS(K) AS(H) &td_comma &td_dot AS(O) AS(RET)
&kp LCTRL AS(Y) &kp LGUI &kp LG(LS(S)) &mt LALT ESC &lt l_L SPACE &kp BSPC &kp DELETE &lt l_R SPACE AS(FSLH) &kp LEFT &kp UP &kp DOWN &kp RIGHT
&kp ESC AS(F12) AS(W) AS(F) AS(P) AS(B) AS(J) AS(L) AS(U) AS(Z) &as LC(G) LC(F) &kp LC(HOME)
&kp LSHFT AS(Q) AS(R) AS(S) AS(T) AS(G) AS(M) AS(N) AS(E) AS(I) AS(NON_US_HASH) &kp LC(END)
AS(TAB) AS(A) AS(X) AS(C) AS(D) AS(V) &kp LS(LC(LALT)) &caps_word AS(K) AS(H) &comma_space &td_dot AS(O) AS(RET)
&kp LCTRL AS(Y) &kp LGUI &kp LG(LS(S)) &mt LALT ESC &lt l_L SPACE &kp BSPC &kp DELETE &lt l_R SPACE AS(FSLH) &kp LEFT &kp UP &kp DOWN &kp RIGHT
>;
};


coding_layer {

bindings = <
Expand All @@ -20,6 +19,25 @@ coding_layer {
>;
};

handsdown {

bindings = <
&kp ESC AS(F12) AS(W) AS(M) AS(G) AS(J) &td_qu_test &td_dot &td_qu AS(Y) &as LC(G) LC(F) &kp LC(HOME)
&kp LSHFT AS(X) AS(C) AS(N) AS(T) AS(K) &td_comma AS(A) AS(E) AS(I) AS(F) &kp LC(END)
AS(TAB) AS(S) AS(P) AS(L) AS(D) AS(V) &kp LS(LC(LALT)) &caps_word AS(NON_US_HASH) AS(U) AS(O) AS(Z) AS(H) AS(RET)
&kp LCTRL AS(B) &kp LGUI &kp LG(LS(S)) &mt LALT ESC &lt l_L SPACE &kp BSPC &mt LSHIFT DELETE &td_r AS(FSLH) &kp LEFT &kp UP &kp DOWN &kp RIGHT
>;
};

handsdown_code {
bindings = <
&trans &trans &trans &trans &trans &trans &trans AS(DOT) &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans AS(COMMA) &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
>;
};


left_layer {

Expand Down Expand Up @@ -74,12 +92,3 @@ gaming_layer2 {
>;
};

handsdown {

bindings = <
&kp ESC AS(F12) AS(W) AS(M) AS(G) AS(J) &none &td_dot &td_qu AS(Z) &as LC(G) LC(F) &kp LC(HOME)
&kp LSHFT AS(X) AS(C) AS(N) AS(T) AS(K) &td_comma AS(A) AS(E) AS(I) AS(F) &kp LC(END)
AS(TAB) AS(S) AS(P) AS(L) AS(D) AS(V) &kp LS(LC(LALT)) &caps_word AS(NON_US_HASH) AS(U) AS(O) AS(Y) AS(H) AS(RET)
&kp LCTRL AS(B) &kp LGUI &kp LG(LS(S)) &mt LALT ESC &lt l_L SPACE &kp BSPC &mt LSHIFT DELETE &td_r AS(FSLH) &kp LEFT &kp UP &kp DOWN &kp RIGHT
>;
};
10 changes: 8 additions & 2 deletions config/boards/shields/horizon/macros.dtsi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#define MACRO_WAIT 50
#define MACRO_TAP 40
#define MACRO_WAIT 35
#define MACRO_TAP 35

macros {
ZMK_MACRO(line_select,
Expand Down Expand Up @@ -37,6 +37,12 @@ macros {
tap-ms = <MACRO_TAP>;
bindings = < &kp LS(DOT) &kp SPACE &sk LSHIFT>;
)
)
ZMK_MACRO(dotdotdot,
wait-ms = <MACRO_WAIT>;
tap-ms = <MACRO_TAP>;
bindings = < &kp DOT &kp DOT &kp DOT>;
)


// Alphas
Expand Down

0 comments on commit cff12bc

Please sign in to comment.