Conky - how to display Pinebook battery? - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: Pinebook (https://forum.pine64.org/forumdisplay.php?fid=76) +--- Forum: General Discussion on Pinebook (https://forum.pine64.org/forumdisplay.php?fid=77) +--- Thread: Conky - how to display Pinebook battery? (/showthread.php?tid=6829) |
Conky - how to display Pinebook battery? - jschall - 11-18-2018 I would like to add a battery monitor to my conky. I have tried ${battery BAT0} and ${battery BAT1}, but neither produce any display. What am I missing? RE: Conky - how to display Pinebook battery? - e-minguez - 11-18-2018 (11-18-2018, 07:54 AM)jschall Wrote: I would like to add a battery monitor to my conky. cat /sys/class/power_supply/battery/capacity RE: Conky - how to display Pinebook battery? - jschall - 11-18-2018 Thank you, @e-minguez. That terminal command does indeed return the current battery percent. I could create a script and run it in conky, but isn't there a conky command? RE: Conky - how to display Pinebook battery? - jschall - 11-25-2018 I finally have a workaround that displays the battery percentage and status in Conkyon my Pinebook. I use the shell commands in script files: #!/bin/sh cat /sys/class/power_supply/battery/capacity and #!/bin/sh cat /sys/class/power_supply/battery/status and I just use two ${exec ./ } commands on a line in .conkyrc It may not be elegant, but it works. |