Conky - how to display Pinebook battery?
#1
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?
#2
(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
#3
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?
#4
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.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pinebook with a broken screen and 2 eMMC's for sale. UK ONLY. frank-zappa 0 321 03-08-2022, 10:14 AM
Last Post: frank-zappa
  Dead Pinebook - fix it or spare parts? oloturia 0 421 01-03-2022, 08:36 PM
Last Post: oloturia
  Pinebook to Pinebook Pro-esque upgrade kit sebboh 5 4,193 08-18-2021, 11:01 PM
Last Post: Corkonian
  Battery life unrealb2 4 2,266 08-01-2021, 12:26 AM
Last Post: unrealb2
  Pinebook Users are a nobody leperotero 7 5,042 01-30-2021, 03:32 PM
Last Post: KC9UDX
  new pinebook help ron_burgundy 5 4,325 12-17-2020, 04:54 PM
Last Post: ron_burgundy
  Few questions about flashing to a MicroSD card on the Pinebook Pro SanjevR 6 5,507 12-07-2020, 04:02 PM
Last Post: SanjevR
  TOR Browser on the Pinebook Pro jay3gg 0 1,806 11-16-2020, 01:25 AM
Last Post: jay3gg
  Pinebook doesn't charge anymore Reinoud 4 5,151 11-15-2020, 10:26 PM
Last Post: pagesix1536
  Pinebook 14" smashed screen. frank-zappa 4 4,778 10-18-2020, 09:24 AM
Last Post: frank-zappa

Forum Jump:


Users browsing this thread: 1 Guest(s)