-
-
Notifications
You must be signed in to change notification settings - Fork 38.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
Enable 2 layers at the same time? #78
Comments
I implemented it as a macro and it was quite simple in the end. In
and use it with I don't check whether it is a key pressed or released since I need to toggle the layer states in both cases. Anyway I would still be interested to know if there is an alternative without macro. |
I think there's something I don't understand here. If layer 2 is designed to be mostly the same as layer 1, why not make the keys in layer 2 transparent? I mean, those that should stay the same. Doesn't that work? |
That's indeed what I did, see https://github.com/DidierLoiseau/qmk_firmware/blob/typematrix/keyboard/ergodox_ez/keymaps/keymap_typematrix.c The thing is that enabling layer 2 does not automatically enable layer 1. I thus needed a way to enable both layers at the same time. |
This is a pretty cool implementation! That's the only way I know to do something like this - I can't really see it becoming a core feature right now because of keymap readability concerns. |
Ok, thanks. I'm happy to know that's the proper way to implement it and that I didn't miss something. I don't think this needs to be a core feature either, but it could be useful to document it somewhere. |
Playing with In fact, it appears I should have used |
- fixes stuck keys from the temporary layers (see also qmk/qmk_firmware#78) - removed the workaround for qmk/qmk_firmware#81 (using layer_invert() fixes the problem)
Update vial.json
I am currently designing a layout in which layer 2 should be the same as layer 1 + some keys.
Layer 2 is designed to be a momentary layer, while layer 1 would be a toggle layer.
To avoid duplicating layer 1 in layer 2, I would like to configure a key that momentarily toggles both layers 1 & 2.
Should I implement it as a macro or is there a simpler way?
The text was updated successfully, but these errors were encountered: