Sunday, August 13, 2017

GenMon That CPU Temp

A little, really a very, very little script to get the CPU temp from my boxes (tested on my baby Thinkpads and on the Dell XPS M1330).
Used with the little known marvel of the XFCE Panel plugin called GenMon (lately a favorite of mine)  you end up getting something like the screenshot on the left.
So here is the script:

cat /sys/class/thermal/thermal_zone0/temp > /tmp/cpu_temp
echo $((`cat /tmp/cpu_temp`/1000))"°"

Labels: , , , , , , , , ,


Post a Comment

<< Home