Dit is er een voorbeeld van.
# Completely (re)written by John Jones on 09/01/2010
# from other people's code, but it's MY layout, so there.
# Edited, extended and partly rewritten by elendilnl between 15 sept and 12 okt 2010
# -== Window Layout & Options ==- #
# Screen size = 1680 x 1050
own_window yes # Boolean. Create own window to draw?
own_window_colour brown # set a specified background colour (defaults to black). ONLY if Transparent = no, then this has effect.
own_window_transparent yes # set transparency? sets background opacity to 0%
own_window_type override # if own_window is yes, you may specify type normal, desktop, dock, panel or override (default: normal)
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes # Use double buffering (reduces flicker, may not work for everyone)
#no_buffers no # Substract file system buffers from used memory?
text_buffer_size 4050 # Size of the standard text buffer (default is 256 bytes). # This is NEEDED for the calendar.sh output.
use_spacer left # Adds spaces around certain objects to stop them from moving other things around.
use_xft yes # Use Xft (anti-aliased font and stuff)
xftalpha 1 # Text alpha when using Xft
override_utf8_locale yes # Force UTF8 to display degrees centigrade;....... note that UTF8 support required XFT
alignment bl # Screen placement (tl, tr, tm, bl, br, bm, ml, mm, mr)
gap_x 5 # gap_x is the distance from the edge of your screen - relative to Alignment value
gap_y 33 # gap_y is the distance from the top/bottom edge of your screen.
cpu_avg_samples 4 # number of cpu samples to average. Set to 1 to disable averaging
# -== Colors, Sizes, & Margins ==- #
total_run_times 0 # Total number of times for Conky to update before quitting. Zero makes Conky run forever
update_interval 1 # update_interval in seconds
minimum_size 1680 500 # minimum_size in pixels = width, then height 1680 150
maximum_width 1680 # Maximum width of window in pixels 1680
stippled_borders 3 # Border stippling (dashing) in pixels
border_width 0 # Window's border width in pixels.
pad_percents 2 # Pad percentages to this many decimals (0 = no padding)
top_name_width 7 # Width for $top name value (defaults to 15 characters)
default_bar_size 150 6 # Specify a default width and height for bars
short_units yes # Shortens units to a single character (kiB->k, GiB->G, etc.). Default is off
default_color DCDCDC #Gainsboro
color0 7FFFD4 #Aquamarine
color1 CD5C5C #IndianRed #00CED1 DarkTurquoise #FFA07A LightSalmon #00FFFF Cyan
color2 FF8C00 #Darkorange #D2691E #Chocolate
color3 7FFF00 #Chartreuse
color4 778899 #LightSlateGrey
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 48D1CC #MediumTurquoise
color8 FFFF00 #Yellow
color9 FF0000 #Red
# -== Text ==- #
draw_outline yes # Boolean. Draw outlines?
draw_borders no # Boolean. Draw borders around text?
#draw_graph_borders no # Boolean. Draw borders around graphs?
font Andale mono:size=8:weight=bold # Font name in X
uppercase no # Boolean value, if true, text is rendered in upper case
draw_shades yes # Boolean. Draw shades?
#mail_spool $MAIL # localmail spool count
TEXT # stuff after 'TEXT' will be formatted on screen
##########################
## WEATHER FORECAST ##
##########################
${execpi 600 conkyForecast --location=NLXX0003 --template=/home/elendil/conky/Templates/weather-7}
##########################
## SYSTEM INFORMATION ##
##########################
#${font}${voffset 30}
#${voffset 0}${color2}${font OpenLogos:size=103}v${font}
#${voffset 25}
## Line 1 ################
${color blue}${hr 1}
## Line 2 ################
${color red}System Information${color}${goto 300}${color cyan}Top 5 Processes$color${goto 600}${color white}Drives and Partitions$color${color yellow}${goto 950}Network Statistics$color${goto 1260}${color green}CPU, RAM, Swap${goto 1560}${color orange}Temp and Fans
## Line 3 ################
${color fdfe6c}${time %A}, ${time %e} ${time %B} ${time %G}${goto 205}${time %H:%M:%S}$color${goto 300}${color ff9999}NAME${goto 400}PID${goto 454}CPU${goto 508}MEM${color}${goto 600}${color7}root : ${color fe6c6c}${fs_bar 6,100 /} ${fs_used /} ${goto 810}/ ${fs_size /} ${color fe6c6c} ${fs_used_perc /} %${color}${color7}${goto 950}Local IP : ${color orange}${addr eth0}${goto 1260}${color fe6c6c}CORE 1 ${cpubar cpu1 6,150} ${goto 1460}${cpu cpu1} ${goto 1485}%${goto 1560}${color7}CPU : ${color orange}${execpi 5 sensors | grep 'temp1' | cut -c15-16}${color7} °C${color}
## Line 4 ################
${color7}Uptime${goto 100}: ${color orange}${uptime}$color${goto 300}${color red}1. ${top name 1}${goto 392}${top pid 1}${goto 440}${top cpu 1}${goto 494}${top mem 1}${goto 600}${color7}stories : ${color orange}${fs_bar 6,100 /media/stories} ${fs_used /media/stories} ${goto 810}/ ${fs_size /media/stories} ${color orange} ${fs_used_perc /media/stories} %${color7}${goto 950}Public IP: ${color orange}${execi 7200 ~/conky/PublicIP.sh}${goto 1260}${color fdfe6c}CORE 2 ${cpubar cpu2 6,150} ${goto 1460}${cpu cpu2} ${goto 1485}%${goto 1560}${color7}MB : ${color orange}${execpi 5 sensors | grep 'temp3' | cut -c15-16}${color7} °C${color}
## Line 5 ################
${color7}Kernel : ${color6}$kernel$color${goto 300}${color ff8c00}2. ${top name 2}${goto 392}${top pid 2}${goto 440}${top cpu 2}${goto 494}${top mem 2}${goto 600}${color7}movies : ${color fdfe6c}${fs_bar 6,100 /media/movies} ${fs_used /media/movies} ${goto 810}/ ${fs_size /media/movies} ${color fdfe6c} ${fs_used_perc /media/movies} %${color7}${goto 950}Upload Speed : ${color green}${upspeed eth0}/s${color}${goto 1110}${upspeedgraph eth0 10,100 81ff81 00ff00 -l -t}${goto 1260}${color 6ffe6c}CORE 3 ${cpubar cpu3 6,150} ${goto 1460}${cpu cpu3} ${goto 1485}%${goto 1560}${color7}Fan 1: ${color orange}${execpi 5 sensors | grep 'fan1' | cut -c13-16}${color7} rpm${color}
## Line 6 ################
${color7}Conky Version${goto 100}: ${color8}${execi 600 /usr/bin/conky -v | head -1 | awk '{print $2}'}${color}${goto 300}${color ff8c00}3. ${top name 3}${goto 392}${top pid 3}${goto 440}${top cpu 3}${goto 494}${top mem 3}${goto 600}${color7}music : ${color 6ffe6c}${fs_bar 6,100 /media/music} ${fs_used /media/music} ${goto 810}/ ${fs_size /media/music} ${color 6ffe6c} ${fs_used_perc /media/music} %${color7} ${goto 950}Download Speed : ${color red}${downspeed eth0}/s${color}${goto 1110}${downspeedgraph eth0 10,100 ff8181 fa0000 -l -t}${goto 1260}${color 03c2fb}CORE 4 ${cpubar cpu4 6,150} ${goto 1460}${cpu cpu4} ${goto 1485}%${goto 1560}${color7}Fan 2: ${color orange}${execpi 5 sensors | grep 'fan2' | cut -c13-16}${color7} rpm${color}
##Line 7 #################
${color7}Processes${goto 100}:${color orange}${running_processes}/${processes}$color${goto 300}${color ff8c00}4. ${top name 4}${goto 392}${top pid 4}${goto 440}${top cpu 4}${goto 494}${top mem 4}${goto 600}${color7}video : ${color 6ceffe}${fs_bar 6,100 /media/video} ${fs_used /media/video} ${goto 810}/ ${fs_size /media/video} ${color 6ceffe} ${fs_used_perc /media/video} %${color}${color7}${goto 950}Total Upload : ${color8}${totalup eth0}${goto 1260}${color5}TOTAL ${if_match ${cpu}<=70}${color green}${else}${if_match ${cpu}<=75}${color yellow}${else}${if_match ${cpu}>75}${color red}${endif}${endif}${endif}${cpubar}${goto 1460}${cpu cpu0} ${goto 1485}%${goto 1560}${color7}Fan 3: ${color orange}${execi 5 sensors | grep 'fan3' | cut -c13-16}${color7} rpm${color}
## Line 8 ################
${color7}Hostname${goto 100}: ${color8}$nodename 10.10$color${goto 300}${color ff8c00}5. ${top name 5}${goto 392}${top pid 5}${goto 494}${top mem 5}$color${goto 600}${color7}software: ${color 6c7bfe}${fs_bar 6,100 /media/software} ${fs_used /media/software} ${goto 810}/ ${fs_size /media/software} ${color 6c7bfe} ${fs_used_perc /media/software} %${color}${color7}${goto 950}Total Download : ${color8}${totaldown eth0}${goto 1260}${color dark grey}RAM ${membar 6,150} ${goto 1460}${memperc}${color dark grey}${goto 1485}%${goto 1560}${color7}HD 1 : ${color orange}${hddtemp /dev/sda}${color7} °C${color}
## Line 9 ################
${color7}Processor${goto 100}: ${color8}AMD Phenom II X4 920${goto 600}${color7}elements: ${color fe6cf8}${fs_bar 6,100 /media/Elements} ${fs_used /media/Elements} ${goto 810}/ ${fs_size /media/Elements} ${color fe6cf8} ${fs_used_perc /media/Elements} %${color}${goto 950}${color7}Inbound : ${color1}${tcp_portmon 1 32767 count}${goto 1260}${color dark grey}Max: ${color orange}${memmax} ${color dark grey}Used: ${color orange}${mem} ${color dark grey}Free: ${color orange}${memfree} ${color}${goto 1560}${color7}HD 2 : ${color orange}${hddtemp /dev/sdb}${color7} °C${color}
## Line 10################
${color7}Freqency${goto 100}: ${color orange}${freq_g cpu0} ${color7}GHz${goto 300}${color #ff9999}System load 1-5-15 min: ${color yellow}${loadavg}${goto 600}${color7}HD Read : ${color}${diskiograph_read 10,100 81ff81 00ff00 -l -t} ${color green}${diskio_read}${color}${goto 950}${color7}Outbound : ${color3}${tcp_portmon 32768 61000 count}${goto 1260}${color 43423e}Swap: ${color 43423e}${swapbar 6,150} ${goto 1460}$swapperc ${goto 1485}%${color}
## Line 11 ###############
${color7}${goto 600}HD Write: ${color}${diskiograph_write 10,100 ff8181 fa0000 -l -t} ${color red}${diskio_write}${font}${color}${goto 950}${color7}Total : ${color0}${tcp_portmon 1 65535 count}${color}
## Line 12 ###############
${color blue}${hr 1}${color}${font}
## Line 13 ###############
${color1}${font Andale Mono:bold:size=9}${execi 10 vnstat -u -i eth0}${goto 300}Yesterday${goto 600}Today${goto 950}Week${goto 1260}Month${color}${font}
## Line 14 ###############
${font Andale Mono:bold:size=8}${color1}INTERNET${font}${goto 210}${font Andale Mono:bold:size=8}${color3}Down :${goto 300}${color3}${execi 10 vnstat | grep "yesterday" | awk '{print $2 $3}'}${goto 600}${color3}${execi 10 vnstat | grep "today" | awk '{print $2 $3}'}${goto 950}${color3}${execi 10 vnstat -w | grep "current week" | awk '{print $3 $4}'}${goto 1260}${color3}${execi 10 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $3 $4}'}
## Line 15 ###############
${color1}USAGE${goto 210}${color9}Up :${goto 300}${color9}${execi 10 vnstat | grep "yesterday" | awk '{print $5 $6}'}${goto 600}${color9}${execi 10 vnstat | grep "today" | awk '{print $5 $6}'}${goto 950}${color9}${execi 10 vnstat -w | grep "current week" | awk '{print $6 $7}'}${goto 1260}${color9}${execi 10 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $6 $7}'}
## Line 16 ###############
${color1}STATISTICS${goto 210}${color9}${color5}Total:${goto 300}${color5}${execi 10 vnstat | grep "yesterday" | awk '{print $8 $9}'}${goto 600}${color5}${execi 10 vnstat | grep "today" | awk '{print $8 $9}'}${goto 950}${color5}${execi 10 vnstat -w | grep "current week" | awk '{print $9 $10}'}${goto 1260}${color5}${execi 10 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $9 $10}'}${font}
## Line 17 ###############
${color blue}${hr 1}${color}${font}
Deze is gebaseerd op een scherm van 1680x1050!
Je zult een heleboel met ${goto} moeten werken om het hele spul uitgelijnd te krijgen.
Een mooi hulpmiddel is Screen Ruler (via Softwarecenter), een lineaal voor op je scherm.