diff options
author | Ingo Bürk <admin@airblader.de> | 2018-06-29 22:49:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-29 22:49:52 +0200 |
commit | 78c0a53c45428a9671c2d0c38dc5483f66465bf2 (patch) | |
tree | 18198735867b1d3a4f65eed1a6d6f6616d49b15d /testcases/021-battery-second | |
parent | a916481aab2d81b1882a25da34a2fe327d74cff4 (diff) | |
parent | 50b899ba42c074c430f612fbf868bae364bcabd7 (diff) |
Merge pull request #293 from Stunkymonkey/hide_seconds_battery
hide seconds in battery by default
Diffstat (limited to 'testcases/021-battery-second')
-rw-r--r-- | testcases/021-battery-second/BAT0_uevent | 4 | ||||
-rw-r--r-- | testcases/021-battery-second/expected_output.txt | 1 | ||||
-rw-r--r-- | testcases/021-battery-second/i3status.conf | 11 |
3 files changed, 16 insertions, 0 deletions
diff --git a/testcases/021-battery-second/BAT0_uevent b/testcases/021-battery-second/BAT0_uevent new file mode 100644 index 0000000..b994324 --- /dev/null +++ b/testcases/021-battery-second/BAT0_uevent @@ -0,0 +1,4 @@ +POWER_SUPPLY_STATUS=Discharging +POWER_SUPPLY_CURRENT_NOW=1107000 +POWER_SUPPLY_CHARGE_FULL_DESIGN=7800000 +POWER_SUPPLY_CHARGE_NOW=2390000 diff --git a/testcases/021-battery-second/expected_output.txt b/testcases/021-battery-second/expected_output.txt new file mode 100644 index 0000000..6e1898b --- /dev/null +++ b/testcases/021-battery-second/expected_output.txt @@ -0,0 +1 @@ +BAT 30.64% 02:09:32 diff --git a/testcases/021-battery-second/i3status.conf b/testcases/021-battery-second/i3status.conf new file mode 100644 index 0000000..3aa2262 --- /dev/null +++ b/testcases/021-battery-second/i3status.conf @@ -0,0 +1,11 @@ +general { + output_format = "none" +} + +order += "battery all" + +battery all { + format = "%status %percentage %remaining" + path = "testcases/021-battery-second/BAT%d_uevent" + hide_seconds = false +} |