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 2015-03-26 12:31:47 +0000

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.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-03-26 12:55:21 +0000

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.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2015-03-26 12:31:47 +0000

Seen: 183 times

Last updated: Mar 26