Skip to content

v1.6.0 — Printable keymap PDF + build-flash memory-budget summary

Choose a tag to compare

@rdlu rdlu released this 25 Apr 22:05
· 154 commits to main since this release
4884c43

Summary

Tooling-only release. No firmware changes — v1.5.0 firmware remains the latest functional build (this release does not affect the .uf2 artifacts).

New mise tasks — printable keymap layout

Generate a portrait A4 PDF of the keymap from the keymap-drawer SVG. One task per source — mirrors the mental model of "which SVG do I want printed?":

Task Source SVG
mise run draw-pdf The existing local file (no regen, no fetch).
mise run draw-pdf-fresh Regenerate locally (mise run draw) first.
mise run draw-pdf-ci Fetch the CI-rendered SVG from origin/main (generally crisper than the local cache).
mise run open-pdf Generate from local SVG + open in the default viewer (xdg-open).

PDF layout: A4 portrait, image centered, UTF-8-safe header (Eyelash Sofle — Keymap Layout · v1.6.0) and footer (Generated 2026-04-25 · github.com/rdlu/zmk-sofle · Page 1 / 1). Output goes to keymap-drawer/eyelash_sofle.pdf (gitignored).

build-flash improvement

The canonical build+flash task now prints a memory budget summary block at the end:

===============================================
  Firmware memory budget
===============================================
  Left  (Studio + nice_view):
               FLASH:      385400 B       792 KB     47.52%
                 RAM:       98346 B       256 KB     37.52%
  Right (nice_view)         :
               FLASH:      274972 B       792 KB     33.90%
                 RAM:       62908 B       256 KB     24.00%

✅ Both halves built and flashed. They will auto-reset and re-pair over BT.

Tool management

weasyprint is declared in [tools] as pipx:weasyprint = "latest" — provision with mise install, upgrade with mise upgrade pipx:weasyprint. Each PDF task fails fast with a friendly error if the binary is missing.

PR: #26