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?
(11-18-2018, 07:54 AM)jschall Wrote: [ -> ]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?
cat /sys/class/power_supply/battery/capacity
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?
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.