1 [[bat.sh]] is a [[bash]] script to display the available battery charge.
3 When I'm running X, I usually monitor battery charge with [conky][],
4 but I wanted a script to allow quick status checks from the command
5 line. You can dig into `/sys/class/power_supply/` if you like, but
6 the [acpi client][] (`sys-power/acpi`) provides a nicer interface:
9 Battery 0: Discharging, 99%, 05:06:14 remaining
11 [conky]: http://conky.sourceforge.net/
12 [acpi]: http://sourceforge.net/projects/acpiclient/
15 [[!tag tags/programming]]