Other Xmobar battery when charging shows "charged"

How does one get the charging percentage of the battery in xmobar ?

Code:
...
template = "%battery% | %multicpu% | %coretemp% | %memory% | %dynnetwork% }{ %RJTT% | %date% || %kbd% "
...
-- battery monitor
        , Run Battery        [ "--template" , "Batt: <acstatus>"
                             , "--Low"      , "10"        -- units: %
                             , "--High"     , "80"        -- units: %
                             , "--low"      , "darkred"
                             , "--normal"   , "darkorange"
                             , "--high"     , "darkgreen"

                             , "--" -- battery specific options
                                       -- discharging status
                                       , "-o"    , "<left>% (<timeleft>)"
                                       -- AC "on" status
                                       , "-O"    , "<fc=#dAA520>Charging</fc>"
                                       -- charged status
                                       , "-i"    , "<fc=#006000>Charged</fc>"
                             ] 50
...
This config simply shows "charged" instead of "charging" - I would like to see the % of battery that has been charged
 
Back
Top