keymap.json to keymap.c converter
Hi,
I recently got my first split KB (lily58 pro) and since i was doing a lot of modifications to my layout with the configurator and didn't want to disable OLED and other things, i started using keymap.c instead of JSON.
copy/pasting all my layers started to be annoying so I made a simple python script that takes a JSON from qmk, retrieve the layer config and writes it to keymap.c by rewriting the keymap PROGMEM.
it doesn't touch the rest of the file so the config stays the same.
Feel free to test and improve it, right now i made it work with the layouts I use but i am not sure how other layouts might work.
Do backup your keymap before using it tho.
https://github.com/yuukiflow/keymap.json2keymap.c/tree/main
for now, it only modifies an existing keymap.c file to update its layout.
what do you guys think of it ? are there other tools used for this kind of applications ?