Skip to content

v0.2.0

Latest

Choose a tag to compare

@D3m0nZOnFire D3m0nZOnFire released this 19 Oct 11:16
· 1 commit to main since this release

New

  • A versioned JSON interface for scripts and bar widgets, documented in docs/INTERFACE.md. Every --json output carries "interface": 1, and fields are only added within a version.
  • list, keys and set now take --json. keys --json gives the full settings schema (kind, range, allowed values, unit), so a UI can be built without knowing the mouse.
  • Errors come back inside the JSON with a code to branch on: permission, no-answer (mouse asleep or out of range) or io.
  • No mouse connected is now "mice": [] with exit 0 instead of an error, so a bar can poll whether or not the dongle is plugged in.

Breaking

  • status --json, battery --json and get --json changed shape. They now return an object ({"interface": 1, "mice": [...]}, or a single mouse for get) instead of a bare list or one value per line. See the doc for the new shapes.
  • Battery states are now a fixed set: charging, discharging, full, unknown. The Attack Shark X11's "fully charged" and "charging/wired" are now full and charging, in the text output and the TUI as well.

No changes to how any mouse is configured.

Full Changelog: v0.1.2...v0.2.0