Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZMK_BEHAVIOR Macro no longer working after update #10

Open
lsshawn opened this issue Feb 9, 2023 · 1 comment
Open

ZMK_BEHAVIOR Macro no longer working after update #10

lsshawn opened this issue Feb 9, 2023 · 1 comment

Comments

@lsshawn
Copy link

lsshawn commented Feb 9, 2023

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.

@urob
Copy link
Owner

urob commented Feb 9, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants