Skip to content

Commit

Permalink
use short version of first hrm codes in combos.dtsi
Browse files Browse the repository at this point in the history
  • Loading branch information
willnapier committed Sep 13, 2024
1 parent 2228610 commit 2a74e52
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions config/combos.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,18 @@
#define COMBO_IDLE_FAST 150
#define COMBO_IDLE_SLOW 50

// Home row mods with tap/hold for left-hand side
// These ensure that you can chord Left GUI (Cmd) + Left Shift or Left Alt with another key
#define HRC_TAB &hml LGUI(LSHFT) TAB // Hold for Left Cmd + Left Shift, tap for TAB
#define HRC_REPEAT &hml_repeat LGUI(LALT) REPEAT // Hold for Left Cmd + Left Alt, tap for REPEAT
#define HRC_LPAR &hmr_lpar_lt RSHFT(LGUI) 0
#define HRC_RPAR &hmr_rpar_gt LGUI(LALT) 0
#define HRC_TAB &hml LG(LSHFT) TAB // Hold for Left Cmd + Left Shift, tap for TAB
#define HRC_REPEAT &hml_repeat LG(LALT) REPEAT // Hold for Left Cmd + Left Alt, tap for REPEAT
#define HRC_LPAR &hmr_lpar_lt RS(LGUI) 0
#define HRC_RPAR &hmr_rpar_gt LG(LALT) 0

/* Horizontal combos - left hand */
ZMK_COMBO(esc, &kp ESC, LT3 LT2, DEF NAV NUM, COMBO_TERM_FAST, COMBO_IDLE_FAST)
ZMK_COMBO(ret, &kp RETURN, LT2 LT1, DEF NAV NUM, COMBO_TERM_FAST, COMBO_IDLE_FAST)
ZMK_COMBO(mouse, &smart_mouse, LT3 LT1, DEF NAV NUM, COMBO_TERM_FAST, COMBO_IDLE_FAST)

//ZMK_COMBO(tab, HRC_TAB, LM2 LM1, DEF NAV NUM, COMBO_TERM_FAST, COMBO_IDLE_FAST)
//ZMK_COMBO(repeat, HRC_REPEAT, LM3 LM2, DEF NAV NUM, COMBO_TERM_FAST, COMBO_IDLE_FAST)
ZMK_COMBO(tab, &kp TAB, LM2 LM1, DEF NAV NUM, COMBO_TERM_FAST, COMBO_IDLE_FAST)
ZMK_COMBO(repeat, &kp REPEAT, LM3 LM2, DEF NAV NUM, COMBO_TERM_FAST, COMBO_IDLE_FAST)
ZMK_COMBO(tab, HRC_TAB, LM2 LM1, DEF NAV NUM, COMBO_TERM_FAST, COMBO_IDLE_FAST)
ZMK_COMBO(repeat, HRC_REPEAT, LM3 LM2, DEF NAV NUM, COMBO_TERM_FAST, COMBO_IDLE_FAST)

ZMK_COMBO(cut, &kp LG(X), LB3 LB1, DEF NAV NUM, COMBO_TERM_FAST, COMBO_IDLE_FAST)
ZMK_COMBO(copy, &kp LG(C), LB3 LB2, DEF NAV NUM, COMBO_TERM_FAST, COMBO_IDLE_FAST)
Expand Down

0 comments on commit 2a74e52

Please sign in to comment.