Skip to content

CardputerZero CPZ v0.8.0

Choose a tag to compare

@jmas jmas released this 19 Nov 11:35
· 2 commits to master since this release

CardputerZero CPZ v0.8.0

This release adds a mouse speed setting, puts Settings back into the Alt+Tab cycle, and fixes the root-owned cache directory that broke mc and other programs on a fresh card.

Highlights

  • Mouse Speed. Settings → Input → Mouse Speed adjusts libinput's pointer acceleration from -1.0 (slowest) to +1.0 (fastest). The change applies without restarting the compositor, and a mouse plugged in later receives the same value.
  • Settings in Alt+Tab. Alt+Tab / Alt+Shift+Tab now cycle through every live tab, including Settings. With a single terminal tab the pair toggles between the terminal and Settings instead of doing nothing.
  • First-start permissions fixed. ~/.cache is created with the first user's ownership, so mc, mpv and every other program that writes an XDG cache no longer fail with Cannot create /home/cpz/.cache/... on a fresh card.
  • Reliable text sizes. Font sizes stay on the real Terminus bitmap strikes (12-32 px) and fall back to DejaVu Sans Mono, so 11/13 px no longer replaces Ukrainian and Cyrillic glyphs with dashes.

Changes

  • cpz-settings: new integer mouse_speed key (tenths of libinput's -1.0..1.0 range) and a Mouse Speed scale on the Input page; persisted in the user and system settings.conf.
  • cpz-pointer: publishes the effective speed to /run/cpz-pointer/speed, includes it in the policy signature and reopens the pointer devices when it changes, so no compositor restart is needed.
  • cpz-cage: loads cpz-pointer-speed.so, a small LD_PRELOAD shim that applies the speed on each libinput DEVICE_ADDED event. It is compiled in stage3 while the toolchain is still present and uses dlsym, so it has no build-time libinput dependency.
  • cpz-tab-cycle: includes the Settings window in the cycle and keeps skipping only windows whose pane died; updated shortcut documentation and tests.
  • 01-run.sh: creates and chowns ~/.cache explicitly before generating the tmux key cache; verify-image.sh and verify-stage.sh reject an image with a root-owned ~/.cache.
  • cpz-font / cpz-foot-config / cpz-settings: normalize text sizes to the Terminus OTB strikes and add a scalable DejaVu Sans Mono fallback.
  • Docs: mouse speed architecture in docs/CPZ-CAGE.md; the Alt+Tab behaviour in docs/CPZ-KEYS.md.
  • Tests: coverage for the published mouse speed, the Settings-inclusive tab cycle, the .cache checks and the font strike normalization.

Install

Download cardputerzero-trixie-arm64-v0.8.0.img.xz from this release and write it to a microSD card with Raspberry Pi Imager, balenaEtcher, dd or M5 Imager.

Default login: cpz / cpz. Wi-Fi is off until it is enabled in Settings.

Documentation: https://github.com/jmas/cpzos/tree/master/docs