diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2011-11-26 18:26:38 +0000 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2011-11-26 18:26:38 +0000 |
commit | 3471ff39f865a450444774237c435bceaaac1c01 (patch) | |
tree | 1a2a09adfd1a2b7fa01c873d0b899c5481ee6d73 /man | |
parent | 40012ed7c62f72f97a183bf72e80c137426d8791 (diff) |
battery: implement "path" option for batteries with non-standard paths
Diffstat (limited to 'man')
-rw-r--r-- | man/i3status.man | 5 |
1 files changed, 5 insertions, 0 deletions
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+ |