Conky


Install conky using yum.

yum install conky

The script that I use, .conkyrc.

# .conkyrc - Edited from various examples across the 'net
# Used by Craig Watson [ www.cwatson.org ] on Fedora 8

# --- Window Layout & Options --- #
own_window yes
own_window_colour brown
own_window_transparent yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
use_spacer right
use_xft yes
#alignment bottom_left
alignment top_right
gap_x 10
gap_y 40

# --- Colours, Sizes, Fonts & Margins --- #
update_interval 2.0
maximum_width 650
stippled_borders 3
border_margin 9
border_width 10
default_color grey

# --- Text --- #
draw_outline no
draw_borders no
font Monospace:size=8:weight=bold
uppercase no
draw_shades yes

TEXT
${color orange}SYSTEM INFORMATION ${hr 2}$color
${color white}${time %A},${time %e} ${time %B} ${time %G}${alignr}${time %H:%M:%S}
${color white}Machine ${color yellow}$nodename ${alignr}${color white}Uptime ${color yellow}$uptime
${color white}Kernel ${color yellow}  $kernel ${alignr}${color white}Arch ${color yellow}$machine

${color orange}CPU ${hr 2}$color
${font Arial:bold:size=8}${color #ff9999}${execi 99999 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2- | sed 's#Processor ##'}$font$color
${color white}Freq:$color ${execi 20 sensors |grep "Core0 Temp" | cut -d" " -f4}$font$color$alignr${freq_g 2}GHz ${color #c0ff3e}${execi 20 sensors |grep "Core1 Temp" | cut -d" " -f4}  $color${alignr}${color white}Processes:$color $running_processes/ $processes
${cpugraph cpu0 25,120 000000 ff6600 } ${cpugraph cpu1 25,120 000000 cc0033}
${color #ff6600}${cpubar cpu0 3,120} ${color #cc0033}${cpubar cpu1 3,120}$color

${color orange}TOP 5 PROCESSES ${hr 2}$color
${color #ff9999}NAME               PID      CPU      MEM
${color #ffff99}1. ${top name 1}${top pid 1}   ${top cpu 1}   ${top mem 1}$color
2. ${top name 2}${top pid 2}   ${top cpu 2}   ${top mem 2}
3. ${top name 3}${top pid 3}   ${top cpu 3}   ${top mem 3}
4. ${top name 4}${top pid 4}   ${top cpu 4}   ${top mem 4}
5. ${top name 5}${top pid 5}   ${top cpu 5}   ${top mem 5}

${color orange}MEMORY & SWAP ${hr 2}$color
${color white}RAM$color   $memperc%   ${membar 6}$color
${color white}Swap$color  $swapperc%   ${swapbar 6}$color

${color orange}DRIVES - FREE SPACE ${hr 2}$color
${color white}Fedora 12$color  ${fs_free_perc /}%$alignr${fs_free /}/ ${fs_size /}
${fs_bar 3 /}$color 

${if_mounted /media/Kingston-Glenn}
${color white}Kingston$color    ${fs_free_perc /media/Kingston-Glenn}%$alignr${fs_free /media/Kingston-Glenn}/ ${fs_size /media/Kingston-Glenn}
${fs_bar 3 /media/Kingston-Glenn}$color 
$endif

${color white}Vista$color      ${fs_free_perc /media/vista}%$alignr${fs_free /media/vista}/ ${fs_size /media/vista}
${fs_bar 3 /media/vista}$color 
${color white}Fedora 11$color   ${fs_free_perc /media/fedora11}%$alignr${fs_free /media/fedora11}/ ${fs_size /media/fedora11}
${fs_bar 3 /media/fedora11}$color 

${color orange}WIRELESS (${addr wlan0}) ${hr 2}$color
${color white}Down:$color  ${downspeed wlan0} KB/s${alignr}${color white}Up:$color ${upspeed wlan0} KB/s
${downspeedgraph wlan0 25,120 000000 00ff00} ${alignr}${upspeedgraph wlan0 25,120 000000 ff0000}$color

${color orange}ETHERNET (${addr eth0}) ${hr 2}$color
${color white}Down:$color  ${downspeed eth0} KB/s${alignr}${color white}Up:$color ${upspeed eth0} KB/s
${downspeedgraph eth0 25,120 000000 00ff00} ${alignr}${upspeedgraph eth0 25,120 000000 ff0000}$color

The file has been heavily modified to accommodate whatever computer conky is installed on.

I've added the option ${if_mounted} / %endif for the thumb drive. Seems if the drive is not inserted conky keeps issuing warnings about it and it is causing my .xsession-errors file to continually grow. I've also edited the file .ck.sh (.conkyscript.sh) to delay the start of conky slightly, sleep 30 and to suppress output, -q.


Return home

Conky (last edited 2009-10-28 14:01:47 by GlennJohnson)