diff options
author | Ingo Bürk <admin@airblader.de> | 2020-02-17 08:30:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-17 08:30:44 +0100 |
commit | 5b115d39f85c5575b8ef6b888c8a66dfc883e603 (patch) | |
tree | 2b03051f15bb30ae2c82321d856658af96d7245e /testcases/020-percentliteral-battery | |
parent | eccd4a761817c791e702dbd60f16d36fae82cffe (diff) | |
parent | b5a804d1afaef1969de9c32060808fefb81a91e7 (diff) |
Merge pull request #380 from Stunkymonkey/percent-split
use format_placeholder(i3lib) for battery_info
Diffstat (limited to 'testcases/020-percentliteral-battery')
-rw-r--r-- | testcases/020-percentliteral-battery/BAT0_uevent | 4 | ||||
-rw-r--r-- | testcases/020-percentliteral-battery/expected_output.txt | 1 | ||||
-rw-r--r-- | testcases/020-percentliteral-battery/i3status.conf | 10 |
3 files changed, 15 insertions, 0 deletions
diff --git a/testcases/020-percentliteral-battery/BAT0_uevent b/testcases/020-percentliteral-battery/BAT0_uevent new file mode 100644 index 0000000..b994324 --- /dev/null +++ b/testcases/020-percentliteral-battery/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/020-percentliteral-battery/expected_output.txt b/testcases/020-percentliteral-battery/expected_output.txt new file mode 100644 index 0000000..a0c0525 --- /dev/null +++ b/testcases/020-percentliteral-battery/expected_output.txt @@ -0,0 +1 @@ +I can %haz literal% % ? diff --git a/testcases/020-percentliteral-battery/i3status.conf b/testcases/020-percentliteral-battery/i3status.conf new file mode 100644 index 0000000..71a333d --- /dev/null +++ b/testcases/020-percentliteral-battery/i3status.conf @@ -0,0 +1,10 @@ +general { + output_format = "none" +} + +order += "battery all" + +battery all { + format = "I can %haz literal% % ?" + path = "testcases/020-percentliteral-battery/BAT%d_uevent" +} |