i3status-rust
i3status-rust copied to clipboard
Battery: add more examples to the docs
Previously (in a build from around mid of May), my i3status-rust setup was showing the battery leftover time via {time} correctly. However, now in v0.30, with $time it does not show anything anymore, and it takes a bit of time to display the percentage initially.
[[block]]
block = "battery"
format = "$percentage|N/A $time"
device = "DisplayDevice"
driver = "upower"
This should work:
[[block]]
block = "battery"
format = "$percentage $time|N/A"
device = "DisplayDevice"
driver = "upower"
The problem was that $time
was after |
. This means that format was split into two parts: $percentage
and N/A $time
. The second one displays only when the first one fails.
Thanks. Initially, I did not use the pipe symbol either, and it didn't work. This one works. I suggest adding more samples to the documentation.
701f70588c67a33e2f895b20efdd35411c0c2a2c