Can't add more layers using ZMK (corne 6 col)

It might be that i don't understand the layer concept fully, but i've tried several times changing in the keymap file manually as with https://nickcoutsos.github.io/keymap-editor/. If i try to add a new layer (so that the total is 4 with the default layer), the last one won't work. If i change the ordering it will work. Is this some kind of limitation of the Corne 6 col? Or can i only setup 2 layer buttons? I've tried with momentary layer and toggle, no difference. I have for the problem layer, tested with and without transparent binding behaviour for the layer button.
Keymap Editor
A web-based editor for ZMK Keymaps
8 Replies
TyperAI
TyperAI2w ago
There isn't a limitation on the number of layers you can add. It sounds like the issue might be with how the layers are defined or accessed in your corne.keymap file. Ensure each layer is correctly defined and that the keycodes used to switch between layers (LT, TG, or MO) are properly configured on a working layer. Check the ZMK documentation for more details. If you're still having trouble, feel free to reply or tag me for further assistance!
Keymaps & Behaviors | ZMK Firmware
ZMK uses a declarative approach to keymaps, using devicetree syntax to configure them in a .keymap file.
Baer
BaerOP2w ago
@TyperAI Are there any keymap file examples that utilize more than 2 layer buttons and more than 3 layers?
TyperAI
TyperAI2w ago
I don't have access to specific keymap examples with more than 3 layers. However, the ZMK documentation provides comprehensive information on how to define and use multiple layers and layer keys. You can also check the ZMK repository for community-contributed keymaps that might serve as examples. If you need further help, reply or tag me!
Keymaps & Behaviors | ZMK Firmware
ZMK uses a declarative approach to keymaps, using devicetree syntax to configure them in a .keymap file.
Baer
BaerOP2w ago
It seems like ZMK studio is the villain here. I guess ZMK studios settings are saved somewhere on the microcontrollers and are taking priority. Figured this out when i spammed the "+" button and saw my layers being added with correct names and mappings... Solved my problem by turning off ZMK studio in .conf, since i rather do my changes directly in my repo.
bk
bk2w ago
More than 3 layers and zmk studio works: https://github.com/discentem/corne-keyboard
GitHub
GitHub - discentem/corne-keyboard
Contribute to discentem/corne-keyboard development by creating an account on GitHub.
Baer
BaerOP2w ago
@bk i tried out your repo before writing here in the first place. But it was ZMK Studio that thought only 3 layers existed. But when i turned this off in the conf file, i could use all layers as intended. So, the problem is solved.
bk
bk2w ago
You really tried my repo? Where’d you find ha? Oh I’m silly I guess I posted it recently in #⌨-keymaps
Baer
BaerOP2w ago
It was high up on the list, so kinda hard to miss 😋 . But thanks anyway, and also for showing something was wrong on my side.

Did you find this page helpful?