add battery widget (taken from https://github.com/coleifer/mastodon/blob/master/battery.go)