urob / zmk-config

Personal ZMK firmware configuration for various boards (34-keys, Corneish Zen, Planck)
527 stars 239 forks source link

question: what is used to generate the layout image? #6

Closed mattmarcello closed 4 months ago

mattmarcello commented 1 year ago

might be cool to add to produce this as a build artifact by default?

urob commented 1 year ago

I am currently creating the layout manually. Here's the source code if you want to modify: http://www.keyboard-layout-editor.com/#/gists/06469e3337fa76f1c6e95229f5c58522

At some point, I am going to move over to use https://github.com/caksoylar/keymap-drawer to automate things, but I haven't found time yet to set things up to work end-to-end.

autoferrit commented 10 months ago

has there been any effort on using keymap drawer? the nodefree repo that this uses seems to be incompatible as there is no root node in the keymap file.

urob commented 10 months ago

has there been any effort on using keymap drawer? the nodefree repo that this uses seems to be incompatible as there is no root node in the keymap file.

Keymap drawer should work (it does for me). It is smart enough to include all necessary files and expand all macros.

Two potential stumbling points:

  1. Make sure to run it on the root file (eg corneish_zen.keymap). Running it in base.keymap doesn't work since base is intended to be included in another keymap file.

  2. If you include the nodefree-repo as submodule, the online version of keymap drawer will currently fail (there's already a PR that fixes this). In either case, running keymap drawer locally works