send optional warning via i3-nagbar

Optionally send low battery warning beforehand. The warning will
appear when the battery level reaches either the optionally provided
argument or the value 5. It will disappear again after 10 seconds.