DSL Tips and Tricks :: Torsmo/Conky Configs



This is on the laptop so it isn't DSL. Fresh build of conky 1.5.1. Note the jwm at .75% in the conky shot is my own no-frills version; the default Vector version ran between 1% and 1.2%. My conky $color is yellowgreen (to match my current jwm theme which is "cool green" -- flat, no gradient, etc.).

jwm theme: http://lucky13linux.wordpress.com/2008/04/09/my-cool-green-jwm-theme/
conky shot: http://lucky13linux.files.wordpress.com/2008/04/conky2.png

Code Sample
TEXT
$nodename - $sysname $kernel on $machine
$hr
${color grey44}Uptime:$color      $uptime
${color grey44}Frequency:$color   $freq Mhz
${color grey44}Temperature:$color ${acpitemp}c
$hr
${color grey66}CPU $color${cpubar 4}
${color grey44}CPU Usage:$color  $cpu%
${color grey44}Processes:$color  $processes  ${color grey44}Running:$color $running_processes
${color grey44}Load Averages:$color $loadavg
$hr
${color grey66}Memory $color${membar 4}
${color grey44}RAM Usage:$color   $memperc%
${color grey44}Swap Usage:$color   $swapperc%
${color grey44}Buffers:$color     $buffers
${color grey44}Cached:$color      $cached
$hr
${color grey66}File systems
${color grey44}/     $color${fs_free /}/${fs_size /} ${fs_bar 6 /}
${color grey44}/home $color${fs_free /home}/${fs_size /home} ${fs_bar 6 /home}
$hr
${color grey66}Networking
${color grey44}SSID:$color          ${wireless_essid eth0}
${color grey44}wifi quality:$color  ${wireless_link_qual_perc eth0}%
${color grey44}wifi bitrate:$color  ${wireless_bitrate eth0}
${color grey44}Up:          $color  ${upspeed eth0} k/s
${color grey44}Down:        $color  ${downspeed eth0} k/s
$hr
${color grey66}Running
${color grey44}Name               PID   CPU%  MEM%
${color} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color} ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
${color} ${top name 6} ${top pid 6} ${top cpu 6} ${top mem 6}

I switched to conky.uci today cos of the more features like the cpugraph, so heres my new config:
Couldnt take a screenshot for some reason, gonna find out why tomorrow xD.

Code Sample
TEXT
${color lightgrey}Host:$color $nodename
${color lightgrey}Kernel:$color $sysname $kernel
${color lightgrey}Uptime:$color $uptime ${color lightgrey}
Load:$color $loadavg
$stippled_hr
${color lightgrey}CPU Usage:$color ${cpu}% ${cpubar}
${color black}${cpugraph 000000 5000a0}
${color lightgrey}RAM Usage:$color $mem/$memmax - $memperc% $membar
${color lightgrey}Processes:$color $processes  ${color grey}Running:$color $running_processes
$color$stippled_hr
${color lightgrey}File systems:
/ $color${fs_used /}/${fs_size /} ${fs_bar /}
$color$stippled_hr
${color}Name              PID     CPU%   MEM%
${color #ddaa00} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} $color${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} $color${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey} ${top name 4} $color${top pid 4} ${top cpu 4} ${top mem 4}
${color lightgrey} ${top name 5} $color${top pid 5} ${top cpu 5} ${top mem 5}

Quote
I switched to conky.uci today cos of the more features like the cpugraph

Why waste CPU cycles and RAM with all that? You get the same "picture" of things with load average.

edit...
Quote
You Should Know

Conky is generally very good on resources. That said, the more you try to make Conky do, the more resources it is going to consume.

http://conky.sourceforge.net/docs.html

edit2...
Quote
YOU SHOULD KNOW

Conky is generally very good on resources. However, certain objects in Conky are harder on resources then others. In particular, the $tail, $top, $font, and $graph objects are quite costly in comparison to the rest of Conky.

If you do use them, please do not complain about memory or CPU usage, unless you think something's seriously wrong (mem leak, etc.).

http://pwet.fr/man/linux/commandes/conky

@lucky13: i dont have any high CPU and mem usage, its all the same as with torsmo. while probably CPU will be used way more when more graphs have to be drawn, but i only got 1 ;)

original here.