1

Conky with a bash script

view story
linux-howto

https://bbs.archlinux.org – I am trying to change the color of my CPU temp text in conky to green, yellow or red based on the CPU temp.  I am getting this in my conky:Temperature:  color green33Here is my conky line:${voffset 1}${goto 40}Temperature: ${font Droid Sans:style=Bold:size=8}${execpi 120 sensors | grep Core0 | paste -s | cut -c15-18 | xargs ~/.conky/colorize.sh}${hwmon 0 temp 1}°C${color}${font}${alignr}Here is my bash script:#!/bin/bash # colorize.sh COOL=65 WARM=80 if [[ $1 < $COOL ]]; then echo "color green" elif [[ $1 > $WARM ]]; then echo "color red" else echo (HowTos)