Include this in your ~/.config/awesome/rc.lua
file and then add the widget at the same place you add your clock.
Output is like 69%[123]
- the number in the square brackets is the minutes remaining (or ??
)
Colour will be green if charging, white if battery is high
, yellow if low
or red if critical
.