show both Claude 5hr utilization and OpenCode spend in tmux status #12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "tmux-claude-and-openrouter-widgets"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The old tmux status widget tracked Claude Max 5-hour rate-limit usage; it was replaced in
8a28e27by a rolling 24h OpenCode/OpenRouter spend widget. This PR shows both side-by-side so the bar reflects the two resources that actually meter my work.Changes
dot-tmux/claude-usage.sh(restored) — Claude Max 5h utilization % and reset countdown, cached 5 min. Always renders in orange (#FF9E64); the old tiered green/yellow/red thresholds are gone since this widget is now a gauge next to the spend widget, not the sole signal.dot-tmux/token-usage-cost.py— returns early with no output (not even its trailing separator) when rolling 24h spend is$0, so the OpenCode/OpenRouter widget only appears once it has something to say.dot-tmux.conf—status-rightcalls both widgets back-to-back. Each script owns its own trailing|, so the bar stays clean when either is silent.Display
✨ 52% ↻ 3:55 | 💸 $3.20/24h | basename | HH:MM✨ 52% ↻ 3:55 | basename | HH:MM💸 $3.20/24h | basename | HH:MMTest plan
claude-usage.shrenders✨ NN% ↻ H:MMin orangetoken-usage-cost.pyemits nothing when 24h spend ≤ $0tmux source-file ~/.tmux.confreloads without errorshow both Claude 5hr utilization and OpenCode spend in tmux statusto WIP: show both Claude 5hr utilization and OpenCode spend in tmux statusWIP: show both Claude 5hr utilization and OpenCode spend in tmux statusto show both Claude 5hr utilization and OpenCode spend in tmux status