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?
  Reply
#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
  Reply
#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?
  Reply
#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.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pinebook to Pinebook Pro-esque upgrade kit sebboh 3 1,037 04-02-2021, 09:49 AM
Last Post: ludix
  Pinebook Users are a nobody leperotero 7 992 01-30-2021, 03:32 PM
Last Post: KC9UDX
  new pinebook help ron_burgundy 5 1,203 12-17-2020, 04:54 PM
Last Post: ron_burgundy
  Few questions about flashing to a MicroSD card on the Pinebook Pro SanjevR 6 1,589 12-07-2020, 04:02 PM
Last Post: SanjevR
  TOR Browser on the Pinebook Pro jay3gg 0 599 11-16-2020, 01:25 AM
Last Post: jay3gg
  Pinebook doesn't charge anymore Reinoud 4 2,226 11-15-2020, 10:26 PM
Last Post: pagesix1536
  Pinebook 14" smashed screen. frank-zappa 4 1,687 10-18-2020, 09:24 AM
Last Post: frank-zappa
Wink Usuarios pinebook español luis 3 1,996 09-10-2020, 09:41 AM
Last Post: leperotero
Smile Pinebook Wallpapers - submissions please! Luke 29 15,579 08-07-2020, 02:45 PM
Last Post: natasha
Sad Disappointment with the Pinebook leperotero 7 3,960 07-01-2020, 11:26 PM
Last Post: sujunmin

Forum Jump:


Users browsing this thread: 1 Guest(s)