/bar-battery-status

This is a Python script that tracks the battery status and sends notifications when the battery level becomes critical. The script reads information about the battery from system files and outputs a formatted message. It's designed for use in simple window managers like dwm.

Primary LanguagePythonMIT LicenseMIT

bar-battery

Python script that monitors the battery status and sends notifications when the battery's capacity reaches a critical level. It reads the battery status and capacity from system files and then prints a pretty-formatted status message for the battery. It's for use in minimalist windows managers bars (e.g. dwm, qtile).

Installation

# clone repository
$ git clone "https://github.com/haaag/bar-battery-status"
$ cd bar-battery-status

# run
$ bar-battery

Requirements

Patched GUI Font is mandatory for icons, the most popular patched fonts are nerd fonts.

Screenshot



TODO

  • Make animated charging state

License

bar-battery is distributed under the terms of the MIT license.