Commit Graph

5 Commits

Author SHA1 Message Date
nevaforget baada36222 fix: reject out-of-range led brightness instead of silently clamping
led accepted any u16 and main.rs clamped to 0..=1000 with no feedback,
inconsistent with sidetone which rejects out-of-range at parse time.
Add a clap range validator (0..=1000) and drop the silent clamp, so
invalid input now fails loudly.

Further quality-audit follow-ups:
- remove dead BragiDevice::open() (no caller; binary uses open_with_verbose)
- add tests: led range validation, format_battery for all status
  variants, waybar "unknown" class

Bump 0.1.2 -> 0.1.3.
2026-06-10 17:51:40 +02:00
nevaforget e364f4edec chore: bump version to 0.1.2
Sync Cargo.toml to 0.1.2 and bring PKGBUILD up to date (was stale at
0.1.0): pin the git source to the release tag for reproducible builds
and install the LICENSE file.
2026-06-10 16:41:42 +02:00
nevaforget 960bc60b20 feat: show sidetone level in Waybar tooltip
Tooltip now shows "HS80: 42% — Discharging | Sidetone: 10/23" when
the ALSA sidetone control is available. Falls back gracefully to
battery-only tooltip when sidetone cannot be read.

Bump version to 0.1.1.
2026-04-09 17:13:41 +02:00
nevaforget 348b7c95e5 fix: hidapi auf linux-shared-hidraw Backend für Arch Linux
Das Default-Feature (linux-static-hidraw) linkt statisch gegen
gebundelte hidapi-Quellen. Arch stellt libhidapi-hidraw.so als
Shared Library bereit — linux-shared-hidraw linkt dagegen.
2026-03-27 23:19:39 +01:00
nevaforget c5f8625345 feat: initiale Implementierung von corsairctl
Rust CLI-Tool für Corsair Bragi-Geräte (HS80 RGB Wireless, etc.).
Implementiert Protokoll-Kern, HID-Kommunikation, BragiDevice mit
RAII-Lifecycle, CLI-Subcommands (battery, sidetone, led, info, json,
udev), ALSA-Sidetone-Steuerung und Waybar-JSON-Output.

24 Unit-Tests für Packet-Bau, Response-Parsing und Property-Enums.
2026-03-27 17:34:37 +01:00