Skip to content

Commit

Permalink
holy crap that was so easy to get working and HRM are already nearly …
Browse files Browse the repository at this point in the history
…perfect
  • Loading branch information
davidlee committed Mar 8, 2024
1 parent de408df commit b13ef02
Showing 1 changed file with 13 additions and 29 deletions.
42 changes: 13 additions & 29 deletions config/planck_rev6.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -15,40 +15,26 @@

#define ___ &trans
#define MEH LC(LA(LSHFT))

/* macros */

/* custom behaviors */

// homerow mods
// ZMK_BEHAVIOR(hrm, hold_tap,
// flavor = "balanced";
// tapping-term-ms = <200>;
// quick-tap-ms = <125>;
// bindings = <&kp>, <&kp>;
// hold-trigger-key-positions = <KEYS_R THUMBS>;
// )

/* sidedness */


#define KEYS_L LT0 LT1 LT2 LT3 LT4 LT5 LM0 LM1 LM2 LM3 LM4 LM5 LB0 LB1 LB2 LB3 LB4 LB5 // left-hand keys
#define KEYS_R RT0 RT1 RT2 RT3 RT4 RT5 RM0 RM1 RM2 RM3 RM4 RM5 RB0 RB1 RB2 RB3 RB4 RB5 // right-hand keys
#define THUMBS LH3 LH2 LH1 RH1 RH2 RH3

tZMK_BEHAVIOR(hml, hold_tap,

ZMK_BEHAVIOR(hml, hold_tap,
flavor = "balanced";
tapping-term-ms = <200>;
quick-tap-ms = <125>;
bindings = <&kp>, <&kp>;
hold-trigger-key-positions = <KEYS_L THUMBS>;
hold-trigger-key-positions = <KEYS_R THUMBS>;
)

ZMK_BEHAVIOR(hmr, hold_tap,
flavor = "balanced";
tapping-term-ms = <200>;
quick-tap-ms = <125>;
bindings = <&kp>, <&kp>;
hold-trigger-key-positions = <KEYS_R THUMBS>;
hold-trigger-key-positions = <KEYS_L THUMBS>;
)


Expand All @@ -73,12 +59,11 @@ ZMK_BEHAVIOR(hmr, hold_tap,
// )

// combos
// #undef COMBO_TERM
// #define COMBO_TERM 40 // default 30ms

// ZMK_COMBO(combo_copy, &kp LC(C), LB2 LB3, ALL) // Ctrl + C, active on all layers
// ZMK_COMBO(combo_paste, &kp LC(V), LB1 LB2, ALL) // Ctrl + V, active on all layers
#undef COMBO_TERM
#define COMBO_TERM 30 // default 30ms

ZMK_COMBO(combo_lbrc, &kp LBRC, LB3, LB2, ALL)
ZMK_COMBO(combo_rbrc, &kp RBRC, LB2, LB1, ALL)

/* keymap */

Expand All @@ -97,14 +82,13 @@ ZMK_LAYER(num_layer,
)

ZMK_LAYER(nav_layer,
___ ___ ___ ___ ___ ___ ___ &kp HOME &kp PG_DN &kp PG_UP &kp END ___
&caps_word &kp LCTRL &kp LALT &kp LCMD &kp LSHFT ___ ___ &kp LEFT &kp DOWN &kp UP &kp RIGHT ___
&kp CAPS &kp LG(Z) &kp LG(X) &kp LG(C) &kp LG(V) &kp LG(V) ___ &kp LG(LBRC) &kp LG(MINUS) &kp LG(EQUAL) &kp LG(RBRC) ___
___ ___ ___ &kp TAB &kp SPACE ___ ___ ___ ___ ___ ___ ___
___ ___ ___ ___ ___ ___ ___ &kp HOME &kp PG_DN &kp PG_UP &kp END ___
&caps_word &kp LCTRL &kp LALT &kp LCMD &kp LSHFT ___ ___ &kp LEFT &kp DOWN &kp UP &kp RIGHT ___
&kp CAPS &kp LG(Z) &kp LG(X) &kp LG(C) &kp LG(V) &kp LG(V) ___ &kp LG(LBRC) &kp LG(MINUS) &kp LG(EQUAL) &kp LG(RBRC) ___
___ ___ ___ &kp TAB &kp SPACE ___ ___ ___ ___ ___ ___ ___
)

ZMK_LAYER(med_layer,
// ___ pinky ring middle index >> << index middle ring pinky ___
___ &kp C_PP ___ &kp C_STOP &kp C_PLAY ___ ___ &kp C_PREV &kp C_VOL_DN &kp C_VOL_UP &kp C_NEXT ___
___ ___ &kp C_PREV &kp C_VOL_DN &kp C_VOL_UP &kp C_NEXT ___ &kp LSHFT &kp LCMD &kp LALT &kp LCTRL ___
___ ___ ___ ___ ___ ___ ___ &kp C_PP &kp C_VOL_DN &kp C_VOL_UP &kp C_PP ___
Expand Down

0 comments on commit b13ef02

Please sign in to comment.