Updated readme, cleaned up xbattery.c, fixed Makefile
Removed vestigial Xevent code and display() arguments
Mostly fixed window resize and CPU use problems
A basic X battery charge monitor for ACPI systems, akin to Xclock or Xload.
This project was inspired by
julienxx's XBattery,
only with support for modern Linux (ACPI instead of APM). Most of the
X code in display()
and init_x()
, as well as color_for_percent()
was heavily adapted or outright copy-pasted from the original project.
Install Noto font to display emoji icons.
Build with make
.
Run make install
as root to copy the binary to /usr/local/bin
.