#========================================================================
# Conky-Linux
# author: Edited & Tweaked from several other conky's 
# Ultimate Edition, Frankula, Australis 
#========================================================================

background yes
update_interval 1
total_run_times 0

cpu_avg_samples 1
net_avg_samples 2
temperature_unit celsius

double_buffer yes
no_buffers yes
text_buffer_size 2048

gap_x 1590
gap_y 20
minimum_size 190 350
maximum_width 320
own_window yes
own_window_type dock
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0
#alignment top_right 

draw_shades yes
draw_outline yes
draw_borders yes
draw_graph_borders yes

override_utf8_locale yes
use_xft yes
xftfont caviar dreams:size=8
xftalpha 0.5
uppercase no

# Default colors and also border colors 
default_color 00GG00 
#default_shade_color white 
#default_outline_color black 
#default_outline_color black 
#own_window_colour green

TEXT
${color yellow}${font Ubuntu:size=14}SYSTEM
${color green}${font Xirod:size=11}${alignc}${pre_exec cat /etc/issue.net}
${color blue}${font Xirod:size=10}${alignc}OS: ${color yellow}$sysname ($machine)
${goto 50}${color yellow}${font Ubuntu:size=11}Kernel ${color green}  ${kernel} Linux
${goto 50}${font Xirod:size=8}${color velvet}Computer Name: ${color red}${nodename}
${font Xirod:size=9}${alignc}${color grey}Uptime: ${font Ubuntu:size=10}${color cyan}$uptime
${image icon.png -p 10,125 -s  30x60}${image icon.png -p 280,125 -s  30x60}
${font Ubuntu:size=11}${alignc}${color grey}${time %a %b %d %Y}
${font Ubuntu:size=24}${alignc}${color red}${time %I:%M:%S:%P}
#${color cyan}${hr 0}
${font Ubuntu:size=13}${color brown}${alignc}You can install ${color yellow}${execi 3600 aptitude search "~U" | wc -l} ${color brown}updates.
${color cyan}${hr 0}
${color yellow}${font Xirod:size=10}${alignc}CPU

${goto 40}${color yellow}${font aClock_Hour:size=11}Core0:  ${color cyan}${exec sensors|grep 'Core 0'|awk '{print $3}'}  ${color cyan}${cpubar cpu1 9,90}   ${color green} ${cpu cpu1}%
${goto 40}${color yellow}Core1:  ${color cyan}${exec sensors|grep 'Core 1'|awk '{print $3}'}  ${color cyan}${cpubar cpu2 9,90}   ${color green} ${cpu cpu2}%
${goto 40}${color yellow}Core2:  ${color cyan}${exec sensors|grep 'Core 2'|awk '{print $3}'}  ${color cyan}${cpubar cpu3 9,90}   ${color green} ${cpu cpu3}%
${goto 40}${color yellow}Core3:  ${color cyan}${exec sensors|grep 'Core 3'|awk '{print $3}'}  ${color cyan}${cpubar cpu4 9,90}   ${color green} ${cpu cpu4}%
${goto 43}${color blue}${cpugraph 15,200 000000 ff0000}
${color grey}${hr 0}
${color white}${font Ubuntu:size=9}RAM: $memperc% ${font Ubuntu:size=9}${color red}$alignr$mem / $memmax
${font Ubuntu:size=9}${color white}Processes:${alignr}${color gold}$processes ${color cyan}($running_processes running)
${font Ubuntu:size=9}${color white}Threads:${alignr}${color yellow}$threads${color green}($running_threads running)
${color grey}${hr 0}
${color red}${font Xirod:size=7}${alignr}CPU% MEM% 

${font DejaVu Sans:size=9}${color firebrick}${top name 1}${goto 220}${top cpu 1}  ${top mem 1}
${color orange red}${top name 2}${goto 220}${top cpu 2}  ${top mem 2}
${color orange}${top name 3}${goto 220}${top cpu 3}  ${top mem 3}
${color dark orange}${top name 4}${goto 220}${top cpu 4}  ${top mem 4}
${color gold}${top name 5}${goto 220}${top cpu 5}  ${top mem 5}
${color Yellow Green}${top name 6}${goto 220}${top cpu 6}  ${top mem 6}
${color cyan}${hr 0}
${font Ubuntu:size=14}${alignc}${color red}Core Temp  ${color velvet}${font Ubuntu:size=14}  ${acpitemp}${font DejaVu Sans:size=12}${color red}° ${color yellow}${font Xirod:size=8}F
${color cyan}${hr 0}
${color yellow}${font Xirod:size=10}${alignc} HDD ${color cyan}
${font Ubuntu:size=11}${color grey}Linux:${color yellow}  (${fs_type})         ${font Ubuntu:size=9}${color velvet}${fs_size /}>${color grey}${fs_used /}${color cyan}${alignr}${fs_bar 7,40} ${color green}(${fs_used_perc /}%)
${font Xirod:size=6}${color white}HDD Read-> ${color cyan}${diskio_read}/s ${alignr}${color red}${diskio_write}/s ${color green}<-HDD Write
${color white}${diskiograph_read 18,150 000000 ff0000} ${alignr}${color white}${diskiograph_write 18,150 000000 ff0000}$color
${font Ubuntu:size=8}${color grey}${exec df -h | grep "/dev/sd" | awk '{ printf "%s of %s \t : %s\n", $5, $2, $6 }' }
${color cyan}${hr 0}
${color yellow}${font Xirod:size=10}${alignc} NETWORK 
${font Ubuntu:size=11}${color grey}Interface: ${color red}$alignr ${gw_iface}
${color grey}IP address: ${color blue}$alignr ${addr eth0}
${color grey}Mask: ${color cyan}$alignr ${execi 1 /sbin/ifconfig eth0 | grep 'inet addr' | awk '{print $4}' | sed 's/Mask:/\ /'}
${color grey}Gateway: ${color green}$alignr ${gw_ip}
${color grey}Downstream:           ${color cyan}${downspeedgraph 9,80}${color yellow}$alignr ${totaldown eth0}
${color grey}Upstream:                  ${color velvet}${upspeedgraph 9,80}${color orange}$alignr ${totalup eth0}
 
