The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

Minute precision for battery %remaining and %emptytime

asked Mar 26 '15

Alois Mahdal gravatar image

Currently, the battery module's %remaining and %emptytimeshow time in precision "hh:mm:ss", that is, 2-digit numbers for hours, minutes and seconds. Due to character of the information--it's basically a guess, and due to the fact that most batteries won't last more than 9 hours, the format is a bit too verbose (I'm referring to the seconds part, and the implicit zero before hour, respectively).

It would be nice if one could specify the precision, or the format so that the information does not cut more from the costly status bar space.

In my own opinion, unpadded hour and minute (%-H:%m in date(1), e.g. "1:05" for hour and 5 minutes remaining) would suffice; it could be even used as default.

1 answer

Sort by » oldest newest most voted
1

answered Mar 26 '15

cee gravatar image

in i3-status Version >= 2.9 there is a new flag hide_seconds = true that implements at least the first part of your request.

Question Tools

Stats

Asked: Mar 26 '15

Seen: 183 times

Last updated: Mar 26