yabar icon indicating copy to clipboard operation
yabar copied to clipboard

Charging status

Open pmatos opened this issue 7 years ago • 0 comments

How does yabar determine charging status?

I have

   battery:{
      exec: "YABAR_BATTERY";
      align: "right";
      internal-option1: "BAT0";
      internal-option2: "        "; 
      internal-suffix: "%";
      underline-color-rgb: 0xe0bc81;

And yet, when the PC is charging it shows as 100% instead. I think the problem is where yabar is reading information from because rendering looks about write:

$ cat /sys/class/power_supply/BAT0/status 
Full
$ cat /sys/class/power_supply/BAT0/capacity
100

I just noticed I have:

$ cat /sys/class/power_supply/AC/online 
1

pmatos avatar Sep 08 '17 19:09 pmatos