Skip to content
A small battery indicator for use in text- based status bars. (Like in WMII)
C
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Makefile
README
tp_battery.c

README

tp_battery

A small battery indicator for use in text- based status bars. (Like in WMII.)

Sample usage:
	tp_battery $(cat /sys/class/power_supply/BAT0/energy_now) $(cat /sys/class/power_supply/BAT0/energy_full) $(cat /sys/class/power_supply/AC/online)

Per default, tp_battery will display something like this:
	+36% [####      ]
'+'         AC is connected
'36%'       Battery status
'[##    ]'  Battery status bar

Configuration:

Because of the small size of tp_battery, it isn't using any configuration file. You can configure tp_battery to fit your needs right in the tp_battery.c source file.
Something went wrong with that request. Please try again.