Skip to content

Commit bdc435d

Browse files
committed
docs(claude-usage): document custom <img> icon and list widget in README
- Placeholders: note the label can embed a custom image via an <img> tag, alongside the existing Nerd Font <span> glyph example. - README: add the widget to the index between Cava and Copilot; it shipped in v2.0.3 but was never listed.
1 parent a6ed4f5 commit bdc435d

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ choco install yasb
9090
| [Bluetooth](https://github.com/amnweb/yasb/wiki/(Widget)-Bluetooth) | Shows the current Bluetooth status and connected devices. |
9191
| [Brightness](https://github.com/amnweb/yasb/wiki/(Widget)-Brightness) | Displays and change the current brightness level. |
9292
| [Cava](https://github.com/amnweb/yasb/wiki/(Widget)-Cava) | Displays audio visualizer using Cava. |
93+
| [Claude Usage](https://github.com/amnweb/yasb/wiki/(Widget)-Claude-Usage) | Shows your Claude (Claude Code) subscription usage with a popup of the 5-hour and 7-day limits. |
9394
| [Copilot](https://github.com/amnweb/yasb/wiki/(Widget)-Copilot) | GitHub Copilot usage with a detailed menu showing statistics |
9495
| [CPU](https://github.com/amnweb/yasb/wiki/(Widget)-CPU) | Shows the current CPU usage and information. |
9596
| [Clock](https://github.com/amnweb/yasb/wiki/(Widget)-Clock) | Displays the current time and date, with customizable formats. |

docs/widgets/(Widget)-Claude-Usage.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ extra configuration is required as long as you are signed in to Claude Code.
2121
## Placeholders
2222

2323
The label is plain text by default. You can prepend a Nerd Font glyph in a `<span>` if you
24-
want an icon (e.g. `<span>\U000f06a9</span> {five_hour}%`). The following placeholders can be
25-
used in `label` / `label_alt`:
24+
want an icon (e.g. `<span>\U000f06a9</span> {five_hour}%`), or embed your own image with an
25+
`<img>` tag (e.g. `<img src='C:/path/to/claude.svg' width='14' height='14'> {five_hour}%`). The
26+
following placeholders can be used in `label` / `label_alt`:
2627

2728
- `{five_hour}` — 5-hour window utilization (percent, `--` when unavailable).
2829
- `{seven_day}` — 7-day window utilization (percent, `--` when unavailable).

0 commit comments

Comments
 (0)