Skip to content

feature: Add wattage when adapter attached.#3024

Open
bhouston wants to merge 2 commits intoexelban:masterfrom
bhouston:add-wattage
Open

feature: Add wattage when adapter attached.#3024
bhouston wants to merge 2 commits intoexelban:masterfrom
bhouston:add-wattage

Conversation

@bhouston
Copy link

@bhouston bhouston commented Mar 12, 2026

This is build upon my previous PR here that fixed a data collection bug: #3023

I added this option in the battery section:

Screenshot 2026-03-12 at 1 47 01 PM

It then displays as a wattage (only when an adapter is plugged in) in the menu bar like this:

Screenshot 2026-03-12 at 1 44 33 PM

Or like this:

Screenshot 2026-03-12 at 1 43 55 PM

This is important to me so that I know if I am on an under powered adapter - there are so many different wattages of power adapters these days, and sometimes the USB cables you use also affect this.

Disclaimers:

  1. This is my second MacOS / swift contribution and it is AI assisted.
  2. I have only tested on the current version of Tahoe (Version 26.3.1 (25D2128)) on a MacBook Air M3.
  3. I didn't see any CONTRIBUTOR.md file so I am making this a bit blindly.

Read adapter current/voltage from external power details and only fall back to charger data when needed, so current is populated reliably. Format charging values in the popup as A/V instead of mA/mV to match expected display units.
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