Repository navigation
Description
Problem
The built-in battery widget always draws the full battery.100percent symbol, or battery.100percent.bolt while charging, next to the percentage as text. The icon doesn't show how full the battery is, or that the Mac is on its adapter without charging (full, or held at 80 % by optimized charging). Nothing in the bar says when macOS recommends servicing the battery; that is only in System Settings → Battery → Battery Health. The percentage text also takes room that the icon could cover.
Proposal
- Draw the battery like the one in the macOS menu bar: a fill that follows the charge and turns red at 10 % or less on battery power, a bolt while charging, and a plug on the adapter without charging. It is sized by
iconSizeand drawn in the theme's text color. - Make it the battery widget's default layout, with the percentage in the tooltip:
62%, 3:20 left,45%, charging, full in 1:05,80%, plugged in, not charging,100%, charged. - When macOS recommends service, add an orange badge to the battery,
fields.health(normalorservice), and a "Service recommended" line in the tooltip. - Add a
batterylayout block, so custom layouts, the Display choices and popups draw the same battery. - Read health from
BatteryHealthCondition(Check BatteryorPermanent Battery Failure), or aBatteryHealthofPoor. On one Mac, IOKit'sBatteryHealthreadsCheck Batterywhile System Settings shows Condition Normal and Maximum Capacity 83 %, soBatteryHealthalone would warn wrongly. System Settings' capacity figure comes from a private call that returnskIOReturnNotPrivilegedto apps. - Make the provider's
iconfollow the charge in quarters (battery.0percenttobattery.100percent) for layouts that use asymbol.
Possible today
Partly. rules can set a data state from values.percent or fields.state, and a layout can drop the text. No layout can draw the level, the plugged-in state or the battery's health: the provider's icon is always full, and it has no health field.
Related
- Battery and sound widgets leave an empty 40 pt gap before their icon #130 and feat: add compact battery and sound display settings #148 replaced the default graph with an icon and value; the maintainer's comment on Battery and sound widgets leave an empty 40 pt gap before their icon #130 preferred an icon and current value by default. This proposal changes that default to the drawn battery, with the value in the tooltip. Icon and value stays a Display choice.
- feat: show the volume only for a moment after it changes #157 made sound's default show only its icon at rest, with the value after a change.
- Show connected Bluetooth devices and their battery #220 tracks Bluetooth device batteries, a separate provider.
- The Store's Battery status package has a layout of its own and is unaffected.
Triaged by Claude Code (Claude Opus 5.5).
Activity
chore(release): 0.6.0 [skip ci]
stablebar-releases commentedon Oct 23, 2026
🎉 This issue has been resolved in version 0.6.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀