From c7dea747519f99584002084df3dce546f37df8b5 Mon Sep 17 00:00:00 2001 From: Emeric Planet Date: Thu, 13 Apr 2017 21:46:21 +0200 Subject: Add battery capacity parsing (#216) The Linux power supply class defines three entries to provide battery status. One of them wasn't used: POWER_SUPPLY_CAPACITY. https://www.kernel.org/doc/Documentation/power/power_supply_class.txt --- testcases/015-battery-capacity/i3status.conf | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 testcases/015-battery-capacity/i3status.conf (limited to 'testcases/015-battery-capacity/i3status.conf') diff --git a/testcases/015-battery-capacity/i3status.conf b/testcases/015-battery-capacity/i3status.conf new file mode 100644 index 0000000..60e626f --- /dev/null +++ b/testcases/015-battery-capacity/i3status.conf @@ -0,0 +1,13 @@ +general { + output_format = "none" +} + +order += "battery 1" + +battery 1 { + format = "Touchpad: %percentage %status %remaining" + format_down = "No touchpad" + path = "/sys/class/power_supply/hid-ff:ff:ff:ff:ff:ff-battery/uevent" + path = "testcases/015-battery-capacity/uevent" + low_threshold = 10 +} -- cgit v1.2.3