Skip to content

Alfred workflow to display battery information of your Apple laptop

License

Notifications You must be signed in to change notification settings

harrtho/alfred-battery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alfred Battery

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.

Dependencies

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

Licence, thanks

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