ansballard / zmk-viewer

cli tool to generate preview images from a zmk .keymap file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ZMK viewer

GitHub go.mod Go version Vuln golangci-lint

A work in progress Cli tool to generate preview images from a zmk .keymap file.

Usage

Usage: zmk-viewer generate <keyboard-name>

Generate layout image.

Arguments:
  <keyboard-name>    Keyboard name to fetch layout.

Flags:
  -h, --help           Show context-sensitive help.
  -D, --debug          Enable debug mode

  -f, --file=STRING    ZMK .keymap file
  -t, --transparent    Use a transparent background.
  -o, --output="."     Output directory.

Keyboard name should be the same as in https://config.qmk.fm.

zmk-viewer generate cradio

Will output this image:

You can pass a .keymap file (this one for reference) to generate the layout with bindings

zmk-viewer generate -f ~/zmk-config/config/cradio.keymap cradio

will output an image for each layer:

About

cli tool to generate preview images from a zmk .keymap file

License:MIT License


Languages

Language:Go 96.2%Language:Dockerfile 3.8%