format battery info on status bar