~thalia/xbattery

An ACPI-based battery status monitor for X
091b18cd — Thalia Wright 3 months ago
Updated readme, cleaned up xbattery.c, fixed Makefile
62ffb077 — Thalia Wright 3 months ago
Removed vestigial Xevent code and display() arguments
1607a5d9 — Thalia Wright 3 months ago
Mostly fixed window resize and CPU use problems

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~thalia/xbattery
read/write
git@git.sr.ht:~thalia/xbattery

You can also use your local clone with git send-email.

#Xbattery for Linux

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.

#Installation

Install Noto font to display emoji icons.

Build with make. Run make install as root to copy the binary to /usr/local/bin.

#Known Bugs

  • The window is white for a few seconds after startup.
  • The text takes a 1-10 seconds to change when plugging/unplugging the AC adaptor

#Roadmap

  • Add support for custom colors using Xresources.
  • Adjust size and position using command line flags.
  • Add support for multi-battery systems.
  • Add an APM backend.
  • Add a man page