Skip to content

Commit

Permalink
fix: homerow mods on mouse layer have undefined macros
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffDess committed Aug 1, 2024
1 parent bf5706d commit ebfe51b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 21 deletions.
24 changes: 3 additions & 21 deletions behaviors/hold-tap.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -95,29 +95,11 @@ ZMK_HOLD_TAP(hrmic,
)


// homerow mods for scroll down (Mouse)
ZMK_HOLD_TAP(hrmmd,
// homerow mods for scroll (Mouse)
ZMK_HOLD_TAP(hrmw,
flavor = "balanced";
tapping-term-ms = <hrm_tap_term>;
quick-tap-ms = <hrm_quick_tap>;
global-quick-tap;
bindings = <&kp>, <&mwh_dn>;
)

// homerow mods for scroll up (Mouse)
ZMK_HOLD_TAP(hrmmu,
flavor = "balanced";
tapping-term-ms = <hrm_tap_term>;
quick-tap-ms = <hrm_quick_tap>;
global-quick-tap;
bindings = <&kp>, <&mwh_up>;
)

// homerow mods for scroll left (Mouse)
ZMK_HOLD_TAP(hrmml,
flavor = "balanced";
tapping-term-ms = <hrm_tap_term>;
quick-tap-ms = <hrm_quick_tap>;
global-quick-tap;
bindings = <&kp>, <&mwh_lf>;
bindings = <&kp>, <&msc>;
)
5 changes: 5 additions & 0 deletions behaviors/mouse.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
#define mwh_up msc SCRL_UP
#define mwh_dn msc SCRL_DOWN

#define MWL SCRL_LEFT
#define MWR SCRL_RIGHT
#define MWU SCRL_UP
#define MWD SCRL_DOWN

// Switch move/scroll on Ploopy Nano by pressing NumLock twice
ZMK_MACRO(mwh_tg, bindings =
<&macro_tap_time 1>,
Expand Down

0 comments on commit ebfe51b

Please sign in to comment.