sudo hddtemp /dev/sd[a-e]
<<< temperatures of a bunch of drivers at oncesudo hddtemp /dev/sda
temperature of one drivebut in the code you need one line per drive since it does use the cut feature and all drives have different names and different characters
the code for conky is :
${execi 300 sudo hddtemp /dev/sda | cut -c24-25}°
this will get temperature and cut it to commit everything except the temperature but now you have to figure out where the cut should beIMPORTANT: you will need to give special rights to allow the use of hddtemp with no password
%users ALL=NOPASSWD: /usr/sbin/hddtemp
<<< etc/sudoers/ ADD