summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2021-06-01Fix printbar and add a lot more testsAaron Ball
Previously printbar wasn't correctly calculating data width. The fill of bars included the surrounding brackets (so a width of 10 was actually 8 + 2 brackets). This makes the fill width the defined with, +2 extra chars for the square bracket. This makes the fill calculations accurate now.
2020-05-12Initial commitAaron Ball
This includes support for printing battery, cpu, filesystem, memory, time, and date sections. Sections with percentage values also support the `display = bar` configuration to make them display a bar rather than the actual percent. Finally, for relevant data types, colors change from green to red as percentage approaches appropriate levels (eg: when memory is high, color is red; when battery is low, color is red, otherwise green).

Generated by cgit