Announcement

Collapse
No announcement yet.

Conky battery_bar

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Conky battery_bar

    Kubuntu 11.04 (64-bit) on my Pavilion g7-1070us laptop, Conky version 1.8.0-1ubuntu1.

    The entry for displaying the battery charge state as a bar graph requires an option not identified in the Conky documentation. I discovered it by accident while Google searching.

    This is how it was originally written (and didn't display the bar-graph filled in):

    ${battery_bar 11,0}

    This produces the bar graph, but without any color filling which represents the percentage of the charge state of the battery (fully filled in, 100% battery charge).

    The solution is to add the battery designator, which the Conky documentation for battery doesn't identify. So, changing the entry to:

    ${battery_bar BAT0 11,0}

    displays the battery_bar correctly. I have just one battery, so BAT0 is correct. If I had two batterys, then BAT0 is the first, and BAT1 would be the second.

    This is the complete line as used in my /etc/conky/conky.conf:

    ${color}Status: ${color LightBlue}$battery ${battery_bar BAT0 11,0}
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes
Working...
X