|
|
@@ -76,9 +76,10 @@ All output is machine-parseable JSON when applicable.
|
|
|
./qmk-rgb-tool --device 2 brightness 160
|
|
|
```
|
|
|
|
|
|
-Without `--device`, commands run only when exactly one keyboard is connected.
|
|
|
-With two or more, they fail and list the numbers you can choose from, so a
|
|
|
-command never hits an unintended keyboard.
|
|
|
+Without `--device`, commands that open a keyboard run only when exactly one is
|
|
|
+connected. With two or more, they fail and list the numbers you can choose from,
|
|
|
+so a command never hits an unintended keyboard. `keyboard info`, `list` and
|
|
|
+`delete` never open a keyboard and work with any number of them.
|
|
|
|
|
|
Numbers are assigned in a stable order (vendor ID, product ID, path), but they
|
|
|
are only guaranteed for the current session. Keyboards are identified by their
|
|
|
@@ -282,7 +283,7 @@ Two models are listed in `keyboards.json`:
|
|
|
| Keyboard | VID | PID |
|
|
|
|-----------------|--------|--------|
|
|
|
| Wobkey Rainy 75 | 0x6666 | 0x0001 |
|
|
|
-| Wobkey Impact 80| 0x36B0 | 0x309F |
|
|
|
+| Wobkey Impact 80 | 0x36B0 | 0x309F |
|
|
|
|
|
|
## CLI Reference
|
|
|
|
|
|
@@ -293,13 +294,14 @@ Two models are listed in `keyboards.json`:
|
|
|
| `qmk-rgb-tool disable` | Disable selected lighting zones |
|
|
|
| `qmk-rgb-tool info` | Show per-zone RGB state (JSON) |
|
|
|
| `qmk-rgb-tool effect <name>` | Set a zone-aware effect by name |
|
|
|
+| `qmk-rgb-tool effect --list` | List every effect per zone (JSON) |
|
|
|
| `qmk-rgb-tool brightness <val>` | Set brightness (0–255) on selected zones, verified by read-back |
|
|
|
| `qmk-rgb-tool speed <val>` | Set effect speed (0–255) on selected zones, verified by read-back |
|
|
|
| `qmk-rgb-tool color <hex>` | Set color (e.g. `ff0000`) on selected zones |
|
|
|
| `qmk-rgb-tool mode <index>` | Set a raw zone-specific effect ID |
|
|
|
| `qmk-rgb-tool --zone <zone> ...` | Target `logo`, `backlight`, or `side` |
|
|
|
| `qmk-rgb-tool --device <n> ...` | Target keyboard by number (see `keyboard info`) |
|
|
|
-| `qmk-rgb-tool save [name]` | Save current RGB state to `profiles/<name>.json` |
|
|
|
+| `qmk-rgb-tool save [name]` | Save current RGB state to `profiles/<name>.json` (name lowercased, non-`[a-z0-9-_]` mapped to `-`) |
|
|
|
| `qmk-rgb-tool load [name]` | Load and apply a profile from `profiles/` |
|
|
|
| `qmk-rgb-tool list` | List saved profiles |
|
|
|
| `qmk-rgb-tool delete [name]` | Delete a saved profile |
|
|
|
@@ -328,7 +330,7 @@ internal/via/ # VIA protocol implementation
|
|
|
|
|
|
## Protocol
|
|
|
|
|
|
-Communicates via the QMK Raw HID interface (`Usage Page 0xFF60`, `Usage 0x61`) with 32-byte feature reports.
|
|
|
+Communicates via the QMK Raw HID interface (`Usage Page 0xFF60`, `Usage 0x61`) with 32-byte reports, report number `0`.
|
|
|
|
|
|
- `0x07` — Custom set value
|
|
|
- `0x08` — Custom get value
|