From 3471ff39f865a450444774237c435bceaaac1c01 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 26 Nov 2011 18:26:38 +0000 Subject: battery: implement "path" option for batteries with non-standard paths --- man/i3status.man | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'man/i3status.man') diff --git a/man/i3status.man b/man/i3status.man index 0666230..a15de86 100644 --- a/man/i3status.man +++ b/man/i3status.man @@ -75,6 +75,7 @@ ethernet eth0 { battery 0 { format = "%status %percentage %remaining" + path = "/sys/class/power_supply/BAT%d/uevent" } run_watch DHCP { @@ -193,6 +194,10 @@ your battery is at 23% when fully charged because it’s old. In general, I want to see it this way, because it tells me how worn off my battery is.), just specify +last_full_capacity = true+. +If your battery is represented in a non-standard path in /sys, be sure to +modify the "path" property accordingly. The first occurence of %d gets replaced +with the battery number, but you can just hard-code a path as well. + *Example order*: +battery 0+ *Example format*: +%status %remaining+ -- cgit v1.2.3