Skip to content

Add invert option for usage segments#2

Open
jfoltan wants to merge 1 commit into
benabraham:mainfrom
jfoltan:feature/invert-usage-percentage
Open

Add invert option for usage segments#2
jfoltan wants to merge 1 commit into
benabraham:mainfrom
jfoltan:feature/invert-usage-percentage

Conversation

@jfoltan
Copy link
Copy Markdown

@jfoltan jfoltan commented Feb 23, 2026

Summary

  • Adds invert=0/1 segment option to usage_5hour and usage_weekly segments
  • When enabled, shows used % instead of remaining %
  • Default is 0 — no change in existing behavior

Usage

SL_SEGMENTS='... usage_5hour:invert=1 usage_weekly:invert=1 ...'

Changes

  • claude-code-status-line.py: Added invert to SEGMENT_DEFAULTS, added logic in format_usage_indicators() to display utilization_pct when inverted
  • README.md: Documented the new option in segment options table + added example
  • CLAUDE.md: Mentioned invert option in configuration description

@benabraham benabraham force-pushed the feature/invert-usage-percentage branch from 6a055b5 to fb946b9 Compare March 21, 2026 16:46
Adds `invert=0/1` segment option that shows used % instead of
remaining %. Default is 0 (no change in behavior).

Usage: `usage_5hour:invert=1 usage_weekly:invert=1`
@benabraham benabraham force-pushed the feature/invert-usage-percentage branch from fb946b9 to 7ec1259 Compare March 21, 2026 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant