Display battery information of your Apple laptop in Alfred
Alfred Battery shows:
- the current charging state
- the remaining time until full or empty
- the temperature
- the charging cycles
- the health
- as well as the serial number
Alfred Battery uses a built-in Swift program to retrieve the battery information from the system.
The Alfred Battery workflow depends on a python3.7+ installation. Install python3
e.g. via. Homebrew brew install python
.
Additionally during the first execution and after an update of the workflow, the workflow compiles the BatteryInfo
program. This program depends on swift and the macOS command line tools
. freeCodeCamp tutorial
The workflow code, the bundled Alfred-PyWorkflow library as well as the graphics are all under the MIT Licence.
The original idea is from BenziAhamed and his Battery workflow