Conky temperature

Hi, I was working on my Conky, the sysinfo box was not showing me the temperature, I solved it by inserting the following lines at the end.

#This shows us the temperature of the processors.
${color}Temperature ${color}$hr
Core 1 ${color}$alignr${exec sensors | grep 'Core 1' | cut -c10-21} C
Core 0 ${color}$alignr${exec sensors | grep 'Core 0' | cut -c10-21} C

This is how the result looks like, now I have to find how to modify the colors, I tried with colorizer but I can’t get the expected result, surely I need to touch something in the general configuration.

Translated with DeepL Translate: The world's most accurate translator (free version)

1 Like

Just use variables:${color}, ${color0} , ${color1}, ${color2}. Colorizer will handle them.


Hi, @napcok I tried it but they show in a disordered way, for example the line that follows Temperature is combined with Core below and what I want is that the line and the °C have one color and the rest have the same color. Surely a mistake I am making with the location of the variables. I will find the solution. :+1:

Take a look how those variables are used on lines above.
Conky is reloaded automatically on every config file save - that should help to figure this out quickly.

1 Like

Hi again. Yes, I was looking and trying to reproduce what was already in the original code, as I could not get it to behave in the same way, I started to make changes.
Yes, I see that Conky updates every time I save the changes. Thank you.

1 Like

I finally figured out how to do it, defined and added a 3rd color as red, modified the added lines so that each thing has its color as I want it. Now I’m happy.

#Esto nos muestra la temperatura de los procesadores
${color}Temperatura ${color0}$hr
${color1}Core 1 $alignr ${color3}${exec sensors | grep ‘Core 1’ | cut -c10-21} C
${color1}Core 0 $alignr${color3}${exec sensors | grep ‘Core 0’ | cut -c10-21} C
${voffset -50}


I modified your file and I stay as follows, I would not have made it without your contribution, thanks

1 Like

Hi @everardo17

I don’t know why sometimes I can’t reply from my cell phone.
Glad to know I helped :+1::+1::+1::+1::+1::+1::+1::+1::+1::+1::+1:.