#!/bin/bash
###
cd $PWD
###
inxi -D -c0 | grep ID | grep -v 'type: USB' | cut -d: -f2,4 | sed -e 's/ vendor: / /g' -e 's/ size//g' -e 's/ \//\//g' -e 's/\/dev\///g' > /tmp/ismich.txt   ### this is doing by .conkyrc in 

pHDDT=`pidof hddtemp`
if [ -n "$pHDDT" ]; then
nc localhost 7634 | sed -e 's/\/dev\///g' -e 's/|//m' -e 's/||/ \n/g' -e 's/C/°C/g' | awk -F'|' '{print $1 " " $3 "" $4}' | grep -v NA > /tmp/ismichnicht.txt


while read hd
do

DH=`cat /tmp/ismich.txt | cut -d' ' -f1`
FN=`echo $hd | sed -e 's/ /: /g'`
FT=`echo $hd | cut -d' ' -f1`
DN=`cat /tmp/ismich.txt | grep $FT | cut -d' ' -f2-`

echo '${goto 120}${font Mono:size=10}${color9}'$FN $DN 

done < /tmp/ismichnicht.txt

else
echo hddtemp is not started

fi

exit 0

