You are not logged in.
I was setting up a .conkyrc file, and had an idea. Instead of hard-coding the colors of each item, why not define some theme variables at the top of the script, like $headingcolor and $barcolor, and use something like
${color $headingcolor}for all of my headings. This way, if I decide I want to change all of my headings from, say, white to green, I can simply change
export headingcolor=whiteto
export headingcolor=greenThe only problem I found is that
${color $headingcolor}doesn't actually work. Instead I get a magenta color wherever I use it.
I thought at first that maybe the export command wasn't working, but I can do something like
export foo=bar
TEXT
${exec echo $foo}and it displays "bar", so the issue has to be in using variables inside of something like ${color ___}. It works with ${exec __}, but that might be special because it's exec, so I'm not sure that this is even possible.
Offline
You can do something like:
default_color white
default_outline_color white
default_shade_color black
color0 gray
color1 ffffff
color2 green
color3 red
color4 blue
color5 magenta
color6 666666
color7 7f7f7f
color8 999999
color9 blackCheck through the conky thread or the conky website documentation for more info and examples.
Offline