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 to Pinebook Pro-esque upgrade kit sebboh 5 2,891 08-18-2021, 11:01 PM
Last Post: Corkonian
  Battery life unrealb2 4 1,232 08-01-2021, 12:26 AM
Last Post: unrealb2
  Pinebook Users are a nobody leperotero 7 3,351 01-30-2021, 03:32 PM
Last Post: KC9UDX
  new pinebook help ron_burgundy 5 3,022 12-17-2020, 04:54 PM
Last Post: ron_burgundy
  Few questions about flashing to a MicroSD card on the Pinebook Pro SanjevR 6 3,915 12-07-2020, 04:02 PM
Last Post: SanjevR
  TOR Browser on the Pinebook Pro jay3gg 0 1,312 11-16-2020, 01:25 AM
Last Post: jay3gg
  Pinebook doesn't charge anymore Reinoud 4 3,979 11-15-2020, 10:26 PM
Last Post: pagesix1536
  Pinebook 14" smashed screen. frank-zappa 4 3,544 10-18-2020, 09:24 AM
Last Post: frank-zappa
Wink Usuarios pinebook español luis 3 3,533 09-10-2020, 09:41 AM
Last Post: leperotero
Smile Pinebook Wallpapers - submissions please! Luke 29 22,462 08-07-2020, 02:45 PM
Last Post: natasha

Forum Jump:


Users browsing this thread: 1 Guest(s)