You are not logged in.

#1 2008-05-13 20:22:41

monotiz
Member
Registered: 2007-10-20
Posts: 134

Change battery_bar color automatically in conky

Hi,
it's possible to change the color of battery_bar (in conky) when the battery level drops below a certain threshold?

Thanks.

Offline

#2 2008-05-13 21:23:16

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,818

Re: Change battery_bar color automatically in conky

Negative.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#3 2012-11-10 05:53:45

gehidore
Member
From: Near the pine trees
Registered: 2012-11-09
Posts: 31

Re: Change battery_bar color automatically in conky

I realize this post is ancient but I found it while searching for the same, so for anyone who lands here and has the desire to change the color automatically based on battery level here's what I'm using. This goes green to 45% orange to 25% and red under that, when it hits 10% and lower it will start to flash.

${if_match ${battery_percent BAT0} >= 45}${color 636F57}${battery_bar 6 BAT0}${else} ${if_match ${battery_percent BAT0} >= 25}${color FFA500}${battery_bar 6 BAT0}${else}${color B22222}${if_match ${battery_percent} =< 10} ${blink ${battery_bar 6 BAT0}} ${else} ${battery_bar 6 BAT0}${endif}

Last edited by gehidore (2012-11-10 05:54:22)


Windows get broken, penguins rarely get sucked into jet engines.

Offline

Board footer

Powered by FluxBB