Jump to content

Conky Configuration with CPU & GPU Temps?

Hi Everybody :)

 

Does anybody have any conky configurations that are mainly oriented around temperatures (as opposed to usage, although I don't really mind if it showed usage)

I have nvidia cards and if you have any templates (or can even write one for me :P) that would then display the CPU & GPU temperatures, that would be really great. Better if it even supports dual-gpus natively.

 

Bonus points if its beautiful!

 

Thanks in advance

Link to comment
Share on other sites

Link to post
Share on other sites

  • 2 weeks later...

These are snippits from my Conky. It's not to hardware dependant. It uses sensors command to get temps. and filter them through a colour filter.

Conky:

MB:

${execpi 5 sensors | grep -A 0 'temp3' | cut -c16-17 | xargs ~/.local/share/conky/helpers/cpu_colorize.sh}°${color}

GPU: no script required

${alignr 5}${if_match 37> ${nvidia temp}}${color7}${nvidia temp}°${color}${else}${if_match 64< ${nvidia temp}}${color9}${nvidia temp}°${color}${else}${color8}${nvidia temp}°${color}${endif}${endif}

and Using HDDTemp:

${if_match 49< ${hddtemp /dev/sda}}${color9}${hddtemp /dev/sda}°${color}${else}\
${color8}${hddtemp /dev/sda}°${color}${endif}${endif}${font}${voffset -2}\
${alignr 5}${color 729FCF}Home:${color}     ${font Droid Sans:size=7}${fs_free /home} free${font}${voffset -6}

and helper script:

#!/bin/bash
# colorize.sh
# by Crinos512
# Usage:
#  ${execpi 6 sensors | grep 'Core 0' | paste -s | cut -c15-18 | xargs ~/.conky/conkyparts/colorize.sh} ... $color
# or
#  ${execpi 6 sensors | grep 'Core 0' | paste -s |sed 's/°/\n/'| head -n1 | cut -c15- | xargs ~/.conky/conkyparts/colorize.sh} ... $color
#
# Note: Assign color7, color8, and color9 to COOL, WARM, and HOT respectively
#   your .conkyrc
 
COOL=37
WARM=51
 
if [[ $1 -lt $COOL ]]
   then echo "\${color7}"$1    # COOL
elif [[ $1 -gt $WARM ]]
   then echo "\${color9}"$1    # HOT
else echo "\${color8}"$1       # WARM
fi
 
exit 0

 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×