Skip to content
Firmware

Firmware

Base

  • ZMK main, through cormoran’s fork at main+dya: ZMK main plus a custom Studio protocol and cormoran’s BLE and activity extensions. Upstream ZMK has no v0.4 release; this is the line cormoran’s “v4” modules target.
  • Zephyr 4.1 (v4.1.0+zmk-fixes).
  • Board nice_nano//zmk (Zephyr’s hardware model v2 name; the default revision is the nice!nano v2), with the eyelash_sofle_left / eyelash_sofle_right shield and nice_view.
  • The shield is vendored in-repo at config/boards/shields/eyelash_sofle/, adapted from the vendor’s v0.3-only module.

Dependencies

Every west project is pinned to a commit, so the same repo commit always builds the same firmware. Read from config/west.yml on every site build:

ProjectRepositoryPinned atTracks
zmkcormoran/zmke5c9b691main+dya
zephyrzmkfirmware/zephyr10ba6d0cv4.1.0+zmk-fixes
zmk-module-ble-managementrdlu/zmk-module-ble-management5ea5b4f5main
zmk-behavior-runtime-sensor-rotatecormoran/zmk-behavior-runtime-sensor-rotate8b1125edmain
zmk-feature-device-infocormoran/zmk-feature-device-info8cedd2ddmain

zephyr is declared in config/west.yml on purpose: ZMK’s own manifest names it by branch, so pinning zmk alone would leave Zephyr floating.

Pinning means updates don’t arrive by themselves. mise run deps-check reports which pins have moved upstream. To take one: change the revision in config/west.yml (keep its # track: comment), west update, mise run doctor, build both halves, and commit with the reason. If a zmk bump changes the Zephyr entry in ZMK’s manifest, mirror it in config/west.yml.

Modules

ModuleWhereDoes
zmk-module-ble-managementwest, left half; from our fork rdlu/zmk-module-ble-managementBLE profile list, switch, rename and unpair, output priority and split info, over Studio RPC. The fork is cormoran’s 57738cc plus a get_split_info fix (the reply now carries info, and the central reports whether the right half is connected), pending upstream
zmk-behavior-runtime-sensor-rotatewest, left halfthe encoder behavior (rsr_vol), editable live in Studio
zmk-feature-device-infowest, left halfbuild and version info over Studio RPC (subsystem zmk__device_info), read by sofleii info
zmk-rgb-layerin-repo (zmk-rgb-layer/)per-layer underglow, moods, brightness; see Underglow
zmk-sofleii-idin-repo (zmk-sofleii-id/)both halves: an identity record (keyboard, half, reset vector) that sofleii flash identify reads from the bootloader drive before flashing (#98); see Flashing

The Studio and RPC settings are central-only and live in the left shield’s eyelash_sofle_left.conf, not in the shared config/eyelash_sofle.conf.

zmk-feature-device-info reports which build the keyboard runs. Its zmk_config_version is git describe --dirty --always --tags of this repo, taken when the build is configured: a local build gives something like sofleii-fw-v3.0.0-65-g1e468b7 (with -dirty if the tree had uncommitted changes; describe takes the nearest tag of any kind, so it can also be a sofleii-tui-v… crate tag, and the -g<hash> is what counts), and a CI build gives the bare short hash of the pushed commit, because the CI checkout is shallow and has no tags. For CI to read the repo at all, the left build loads config/ci-git-safe-directory.cmake, which marks the workspace as a git safe directory (the build runs as root on a checkout the runner owns). Reads don’t need a Studio unlock.

Build matrix

GitHub Actions builds three firmwares on every push to main that touches config/, build.yaml, zmk-rgb-layer/ or zmk-sofleii-id/, using ZMK’s reusable build-user-config workflow at a pinned ZMK-main commit:

ArtifactShieldExtras
eyelash_sofle_studio_lefteyelash_sofle_left nice_viewStudio on, locking off, studio-rpc-usb-uart snippet, zmk-rgb-layer, zmk-sofleii-id
nice_view-eyelash_sofle_right-zmkeyelash_sofle_right nice_viewzmk-rgb-layer, zmk-sofleii-id
settings_resetsettings_reset

Both in-repo modules go in through -DZMK_EXTRA_MODULES (a CMake list, quoted in build.yaml so bash keeps the ;), exactly as the local build tasks do.

Notable settings

From config/eyelash_sofle.conf:

SettingValue
Idle sleepafter 1 hour (CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=3600000)
Soft offon (CONFIG_ZMK_PM_SOFT_OFF=y)
Debounce8 ms press, 8 ms release
HID reportNKRO off (6KRO)
BLE transmit power+8 dBm
Pointing (mouse keys)on
Underglowon; off at boot, solid effect, max brightness 60, off when idle, same on USB and battery

Memory budget

v3.5.0 (Magic SysRq, calculator and lock on SYS|NUM; brightness, touchpad toggle and spare F-keys on MEDIA): a local build on 2026-10-29 puts the left half at 472840 B / 128530 B, +184 B of flash and +176 B of RAM over v3.4.0. That is the new SYSRQ macro; the key changes swap bindings in place and measured nothing (the same size with and without the MEDIA F-keys and the SysRq move). The right half doesn’t carry the keymap, so it is unchanged.

Unchanged in v3.4.0 (NAV hold-taps and screenshot keys, no new layer): rebuilt locally on 2026-10-29, the left half is 472656 B / 128354 B, the same as the 2026-10-24 build below. v3.3.0 (local, 2026-10-25) was 472660 B / 128354 B (+4 B of flash, a longer version string); the right half and settings reset are byte-for-byte the same sizes as below.

Left half: a local build (2026-10-24) with the identity record (#98), 472656 B of flash and 128354 B of RAM: +84 B of flash and no RAM over the 2026-10-21 build of the same firmware (472572 B / 128354 B), which added the MYGAME custom game slot (#79). The tenth layer cost +1204 B of flash and +1232 B of RAM, measured as two builds of the same tree with and without it: about 1.2 KB of RAM per 64-key layer, since ZMK keeps the keymap in RAM so Studio can edit it. Before it, the 2026-10-19 build with the peripheral battery proxy (#45), device info (#46) and the get_split_info fix from our ble-management fork was 471368 B / 127122 B. The fix cost +80 B of flash and no RAM over the same build with cormoran’s 57738cc (471288 B / 127122 B). Device info cost +2396 B and +600 B over the #45 build (468892 B / 126522 B), which was +928 B and +168 B over v3.0.0. Right half: the keymap lives on the central only, so MYGAME adds nothing there; a local right build is 330916 B / 78952 B with the identity record (2026-10-24), +76 B of flash and no RAM over the 330840 B / 78952 B of 2026-10-21 (the same as 2026-10-19), which had the same RAM as CI run 39026110927 (2026-10-17) and 96 B less flash (CI’s longer source paths). Device info is off on the right (CONFIG_ZMK_DEVICE_INFO unset), so it adds nothing there, and neither does ble-management (left only). Settings reset: unchanged from v3.0.0, measured from that CI run.

BuildFlash usedFlash freeRAM usedRAM free
Left (Studio, nice!view; local build)462 KB / 792 KB (58.30%)330 KB126 KB / 256 KB (49.03%)130 KB
Right (nice!view)323 KB / 792 KB (40.8%)469 KB77 KB / 256 KB (30.1%)179 KB
Settings reset51 KB / 792 KB (6.5%)13 KB / 256 KB (4.9%)

The left half is the tightest: Studio, both Studio transports (USB CDC-ACM and BLE GATT), the custom RPC modules, zmk-rgb-layer, the peripheral battery proxy (#45) and device info (#46) are all on it. The move from Zephyr 3.5 to 4.1 cost about 47 KB of flash and 14 KB of RAM on the left half, and 53 KB and 15 KB on the right, even after dropping three modules: that is the newer Zephyr and BLE stack. zmk-rgb-layer takes well under 1 KB.

Refresh this table after significant keymap or config changes, from the Memory region block of the latest Build ZMK firmware run log (mise run build-flash prints the same numbers for a local build).