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 f3bbb4f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 23 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
4 changes: 2 additions & 2 deletions config/urchin.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
#include "../chars/typography.dtsi"
#include "../layouts/canadian-multilingual-standard.dtsi"
#include "../behaviors/combos_34.dtsi"
#include "../behaviors/mouse.dtsi"
#include "../behaviors/hold-tap.dtsi"
#include "../behaviors/macros.dtsi"
#include "../behaviors/mod-morph.dtsi"
#include "../behaviors/mouse.dtsi"

ZMK_LAYER(Colemak,
// ╭───────────┬───────────┬───────────┬────────────┬────────────╮ ╭───────────┬─────────────┬─────────────┬────────────┬────────────╮
Expand Down Expand Up @@ -133,7 +133,7 @@ ZMK_LAYER(Mouse,
// ╭───────────┬───────────┬───────────┬────────────┬────────────╮ ╭───────────┬─────────────┬─────────────┬────────────┬────────────╮
XXX XXX &mwh_tg &mmv_dpi XXX XXX XXX XXX XXX XXX
// ├───────────┼───────────┼───────────┼────────────┼────────────┤ ├───────────┼─────────────┼─────────────┼────────────┼────────────┤
XXX &hrmml AL 0 &hrmmu CL 0 &hrmmd SL 0 &mwh_rg &mmv_lf &mmv_dn &mmv_up &mmv_rg XXX
XXX &hrmw AL MWL &hrmw CL MWU &hrmw SL MWD &mwh_rg &mmv_lf &mmv_dn &mmv_up &mmv_rg XXX
// ├───────────┼───────────┼───────────┼────────────┼────────────┤ ├───────────┼─────────────┼─────────────┼────────────┼────────────┤
XXX XXX XXX XXX XXX XXX XXX XXX XXX XXX
// ╰───────────┴───────────┴───────────┼────────────┼────────────┤ ├───────────┼─────────────┼─────────────┴────────────┴────────────╯
Expand Down

0 comments on commit f3bbb4f

Please sign in to comment.