How to add more layouts to modify in ZMK? **Studio

Preferably without overriding the existing layout
4 Replies
TyperAI
TyperAI2mo ago
To add more layouts in ZMK without overriding the existing layout, you can create additional keymap files in your ZMK configuration repository. Here’s how to do it: 1. Clone the ZMK Config Repository: If you haven't already, clone your ZMK config repository to your local machine. 2. Create a New Keymap File: In the config folder of your repository, create a new keymap file. You can name it something like my_custom_keymap.keymap. 3. Define Your Layout: In your new keymap file, define your custom layout. You can reference the existing layout for guidance. Make sure to use unique names for your layers to avoid conflicts. 4. Update the CMakeLists.txt: In the root of your ZMK configuration, update the CMakeLists.txt file to include your new keymap file. This ensures that ZMK recognizes your new layout when building the firmware. 5. Build the Firmware: After making your changes, build the firmware using the GitHub Actions in your repository. This will generate a new firmware file that includes your custom layout. 6. Flash the Firmware: Once the build is complete, flash the new firmware to your nice!nano. 7. Test Your Layout: After flashing, test your keyboard to ensure that your new layout works as expected. For more detailed instructions on customizing keymaps, you can refer to the ZMK documentation. If you have any further questions or need assistance, feel free to ask!
Keymaps & Behaviors | ZMK Firmware
ZMK uses a declarative approach to keymaps instead of using C code for all keymap configuration.
Nicell
Nicell2mo ago
Are you working with ZMK studio?
TheGreydiant
TheGreydiantOP2mo ago
yea, forgot the studio part
Nicell
Nicell2mo ago
You can use our firmware template. Then add more reserved layers to the keymap file it should remember your keymap even after the new firmware is flashed but with more layers

Did you find this page helpful?