-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Combine the &mo and &ht #1643
Comments
You always need to pass two paramaters to a hold-tap behavior, even if one of the sub-behaviors do not expect one. In your case the hold binding (macro) doesn't expect one, so you can pass a dummy parameter like
That being said, a mod-morph can make your life easier where you simply morph the custom layout key to |
thanks, Cem, passing a dummy btw, I'm still feeling about how the Is there any piece of documentation around specifically for those properties? |
I am not a devicetree expert myself, but keymap In the context of ZMK, different behavior types (as specified by How the behaviors handle the passed parameters I think is dependent on its implementation. Some behaviors take zero parameters like macros and mod-morphs, which are not parametrizable (so you need to create a new instance for each macro). One binding behaviors like |
ah, that makes perfect sense, I didn't know that it's the zephyr's thing. I'll poke at that. thanks for the info! |
btw, @caksoylar, did you solve that pesky alt-tab problem somehow by any chance? |
If you mean #997, then I use a custom branch with #1366 merged in and it is working well for my purposes. |
ohi folks, can I ask for an advise, please?
here is the problem. I'm using a custom keyboard layout, but it's a tricky one, because it switches to QWERTY when one of the mods are pressed. basically the point is that all the normal
crtl+c
,ctrl+v
,ctrl+s
combinations still work the way they work in QWERTY, but otherwise it's a different layout altogether.now, I'm trying to replicate this behaviour in ZMK and apply that to home row mods. I two layers defined the custom layout and qwerty, and now I want something like mod-tap that drops into another layer when mod is pressed.
I found that I can combine a mod and a layer switch with a macro like so, I have wrapped it into a macro generator. Where I'm struggling is combining that with the hold tap behaviour, or more simply how to pass a macro into a hold-tap as an argument.
Here is what I'm trying so far, but it doesn't really compile
can you school me in the zmk ways a bit and let me know what am I doing wrong here?
Thanks!
The text was updated successfully, but these errors were encountered: