Repository navigation
New
- A versioned JSON interface for scripts and bar widgets, documented in docs/INTERFACE.md. Every
--jsonoutput carries"interface": 1, and fields are only added within a version. list,keysandsetnow take--json.keys --jsongives 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) orio. - 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 --jsonandget --jsonchanged shape. They now return an object ({"interface": 1, "mice": [...]}, or a single mouse forget) 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 nowfullandcharging, 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