mkogg.py: Fix 'self.get_mp4_metadata(self, source)'
[blog.git] / posts / bat.mdwn
1 [[bat.sh]] is a [[bash]] script to display the available battery charge.
2
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:
7
8     $ acpi -b
9     Battery 0: Discharging, 99%, 05:06:14 remaining
10
11 [conky]: http://conky.sourceforge.net/
12 [acpi]: http://sourceforge.net/projects/acpiclient/
13
14 [[!tag tags/bash]]
15 [[!tag tags/programming]]