HDTemp and Conky

Conky’s execi command can be use to execute any terminal line application and then display the output. We can use this with hdtemp to display the temperature of the hard disk.

sudo apt-get install hdtemp

Say yes to run as a start-up service and also accept the default port of 7634.

Open a terminal and type

nc localhost 7634

My output looks a little like this.


As you can see the temperature is 41|C.

What we need to do is pipe the output of nc into the cut command to remove the surplus output to leave us with 41. We can then display this in the conky output

Either count along to what looks like the first number of the temperature and replace the c-24 with c-<yournumber>-c

nc localhost 7634  | cut -c24-25

run the command and make sure you are good to go.

Then copy the following into your .conkyrc

${execi 300 nc localhost 7634  | cut -c24-25;}°C


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s