I just starting using conky again a few months ago. I display my external IP address so I could tell at a glance when I was using a VPN vs. not, my up/down load speeds, memory and swap % in use, and today I found a desire to see CPU loads.
Trying to have some fun with it, I decided to try and have a eye-catching way to see when my CPUs got busy. I didn't like the size and look of the cpugraph but I liked the bar. Here's a look at what I settled on:
As you can see: small and simple. But I wanted a bit more flash when the CPUs get busy so I changed the bar lines in the text section to this:
CPU 1:$color ${cpu cpu1} ${if_match ${cpu cpu1}<50}${color dimgrey}${else}${if_match ${cpu cpu1}<70}${color0}${else}${if_match ${cpu cpu1}<89}${color1}${else}${color2}${endif}${endif} ${endif}${goto 0}${offset 80}${cpubar cpu1 3,164}${color dimgrey}
This changes the color of the CPU bar from dimgrey, to green, to gold, to red as the percentage of use climbs. Pretty cool.
I wonder if there's a way to have the bar change color in a gradient fashion, or step through the colors - like dimgrey for 40% of the bar, then the next 20% green, next %20 percent gold, etc.
Anyone have ideas?
Trying to have some fun with it, I decided to try and have a eye-catching way to see when my CPUs got busy. I didn't like the size and look of the cpugraph but I liked the bar. Here's a look at what I settled on:
As you can see: small and simple. But I wanted a bit more flash when the CPUs get busy so I changed the bar lines in the text section to this:
CPU 1:$color ${cpu cpu1} ${if_match ${cpu cpu1}<50}${color dimgrey}${else}${if_match ${cpu cpu1}<70}${color0}${else}${if_match ${cpu cpu1}<89}${color1}${else}${color2}${endif}${endif} ${endif}${goto 0}${offset 80}${cpubar cpu1 3,164}${color dimgrey}
This changes the color of the CPU bar from dimgrey, to green, to gold, to red as the percentage of use climbs. Pretty cool.
I wonder if there's a way to have the bar change color in a gradient fashion, or step through the colors - like dimgrey for 40% of the bar, then the next 20% green, next %20 percent gold, etc.
Anyone have ideas?
Comment