You are not logged in.

#1 2010-03-02 20:33:03

ancleessen4
Member
From: Luxembourg
Registered: 2009-11-22
Posts: 121
Website

SOLVED conky hdd temp format

I am trying to display hdd temp in conky as per;

${color slate grey}drive temp: ${alignr}${color lightgrey}${execi 5 hddtemp /dev/sda |  cut -c 30-40}

This is the result with odd formatting;
hdd-temp.jpg

Calling all conky experts!
How do I format this output correctly?:/

Last edited by ancleessen4 (2010-03-02 21:29:36)

Offline

#2 2010-03-02 21:10:21

Coacher
Guest

Re: SOLVED conky hdd temp format

${color grey}HDD temp: ${execi 30 sudo hddtemp -n /dev/sda} C

remove sudo if needed

#3 2010-03-02 21:29:02

ancleessen4
Member
From: Luxembourg
Registered: 2009-11-22
Posts: 121
Website

Re: SOLVED conky hdd temp format

Thanks Coacher!
Actually with a bit of experimentation I got it formatted this way too;

${color slate grey}sda: ${alignr}${color lightgrey}${execi 30 hddtemp /dev/sda |  cut -c 31-33}C

Cheers:D

Offline

#4 2010-03-02 21:31:04

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: SOLVED conky hdd temp format

If you force UTF-8, it should work afaik. Plus it's the cleaner way wink.

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

Board footer

Powered by FluxBB