]> git.sur5r.net Git - i3/i3status/blobdiff - man/i3status.man
battery: implement "path" option for batteries with non-standard paths
[i3/i3status] / man / i3status.man
index 0666230a87d145f9338a9d23cba563a5227a6511..a15de86cb328fbef045d0934816b09364e3e3d0d 100644 (file)
@@ -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+