I'm playing around with Conky and enjoying the freedom to customuie my own "desklet". One item that I'm stuck on is trying to have a the CPU cores return their numeric value color coded dependent on how high the core is being used. I found the below code searching for a solution that is supposed towork for batteries:
Code: Select all
$font${color1}Battery 1: $color${if_match ${battery_percent BAT0}<=15}${color7}${blink ${battery BAT0}}${color}${else}${if_match ${battery_percent BAT0}<=25}${color8}${battery BAT0}${else}${if_match ${battery_percent BAT0}>25}${color}${battery BAT0}${endif}${endif}${endif}, ${battery_time BAT0}${color}
Code: Select all
$font${color1}Core 7: $color${if_match cpu cpu7<=25}${color green}${cpu cpu7}L${color}${else}${if_match ${cpu cpu7}<=50}${color yellow}${cpu cpu7}M${else}${if_match ${cpu cpu7}>51}${color red}${cpu cpu7}H${endif}${endif}${endif},${color}
Thanks.