PDA

View Full Version : Conky Question



M_Mynaardt
May 8th, 2012, 07:22 PM
Hi there!

I'm getting a bit more confident messing about with Conky.
:)

But now I want to try something with the $if thing.
:shock:

I wasn't able to find any examples of $if blocks that would be along the lines of what I'd like to try.

What I would like to do is something along the lines of this logic:


If battery_percent > 19
then green battery bar
else red battery bar
endif
# all in one line, of course


I'm okay with the ${color #dddddd} statements and such
I'm just shaky on how to put together a proper $if block

I'm probably straight forward, but I don't want to make a mess of it!
[-X

Thanks!