Battery Indicator

Your remaining battery time in the menu bar

Battery Indicator is a macOS app that shows the remaining battery time in your menu bar.


Yann Bertrand


You need to become a Contributor to join the discussion - Find out how.
Sindre Sorhus
Sindre SorhusMaker@sindresorhus · Maker · macOS Developer · Open-Sourcerer
Hey, I'm Sindre. I make things and work on open source full-time. In December last year, Apple pushed out macOS Sierra 10.12.2 which removed the time remaining estimate from the battery icon menu. I quite liked being able to see approximately how much time I have left, as I often sit in coffee shops using only battery. So I decided to do something about it. I had never done macOS development before nor used Swift, so this was an exciting learning experience. In the app, you can choose to either show the remaining battery time or percentage in the menu bar icon, the other value is shown in the menu. Tip: You can hide the system battery icon by dragging the icon out of the menu bar while pressing the Command key.
@sindresorhus wow this is really amazing. I love the work ethic of "I have a problem, let me fix it and deal with it myself". Amazing!
Abhishek Bhattacharya
Abhishek Bhattacharya@abhib · Product Manager, Karachain
@sindresorhus That sounds quite useful! I remember even contacting Apple Support to ask why am I not being able to view the time remaining (yes, that was stupid - should have read update log of the current update...). Well, also, how much time did it take you to learn Swift programming as well as get an idea of development on Mac and macOS APIs, and then to create this?
Sindre Sorhus
Sindre SorhusMaker@sindresorhus · Maker · macOS Developer · Open-Sourcerer
@abhib I started developing the app some days during Christmas, and then got busy until the end of January, when I decided to finish it. I didn't read anything upfront. I just started working on the app and learned as I went. I was surprised how easy Swift was to pick up. I got productive very quickly. Creating a menu bar app is also fairly straightforward, but it got complicated by the need for a dynamic icon with text inside. I spent so much time getting that text to stay perfectly in the middle of the icon. In general, the Cocoa APIs were the obstacle, not Swift. It didn't help that Swift 3 renamed all the things, so pretty much all examples and docs out there didn't compile or apply.
This is a must-have now Apple have removed the ETA from their own battery life indicator. Thanks Sindre! 💪
Sam Verschueren
Sam Verschueren@samverschueren
Awesome small utility application. Looks neat, works very accurate. Must have!
Alex Sieroshtan
Alex Sieroshtan@alexsieroshtan · Software developer
Øyvind Nordbø
Øyvind Nordbø@onordbo · Designer
This is great. Thanks for reviving battery time estimations, Sindre! 🔥 🚀 🔋