This script is intended to display the battery percentage and time remaining in the wmii "panel" on linux using the default ACPI paths (works only for one battery)

battremain

add this to rc.wmii.local