You are not logged in.
Hi,
it's possible to change the color of battery_bar (in conky) when the battery level drops below a certain threshold?
Thanks.
Offline
Negative.
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
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