zmk-helpers
zmk-helpers copied to clipboard
ZMK_BEHAVIOR Macro no longer working after update
ZMK_BEHAVIOR(tmux_left, macro,
wait-ms = <0>;
tap-ms = <5>;
bindings = <&kp LC(A) &kp H>;
)
https://github.com/lsshawn/corne-zmk/blob/f9514af7ffbd0659245a88ec1488e9c4fd61bf7c/config/corne.keymap#L188 here's my keymap.
I noticed that the macro only register the first keypress.
The syntax looks fine. What's the update that you are referring to, and did it work before? Also do the other macros in your keymap work fine?
It might be worth trying to increase the wait and tap times to see if that makes a difference. If the times are too short there can be issues over Bluetooth and on some OS and some terminals/remote connections.
BTW: since you are setting all your macros to use the same wait-ms and tap-ms, you might be interested in the new global configuration options CONFIG_ZMK_MACRO_DEFAULT_WAIT_MS
and CONFIG_ZMK_MACRO_DEFAULT_TAP_MS
which you can set in your corne.conf
file. Then you could define all your macros in a one-liner such as
ZMK_BEHAVIOR(tmux_left, macro, bindings = <&kp LC(A) &kp H>; )
See here for details https://zmk.dev/docs/config/behaviors#macro