#==============================================================================
#                                  conkyrc_10
#
#  author  : CAYMUS
#  version : v20120528-01
#  license : Distributed under the terms of GNU GPL version 2 or later
#
#==============================================================================

background yes
update_interval 1

cpu_avg_samples 2
net_avg_samples 2
temperature_unit celsius

double_buffer yes
no_buffers yes
text_buffer_size 2048

gap_x 10
gap_y 30
minimum_size 285 760
#maximum_width 190
own_window yes
own_window_type override
own_window_transparent yes
#own_window_argb_visual
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0
alignment tr

draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

override_utf8_locale yes
use_xft yes
xftfont 6x10:size=8
xftalpha 0.5
uppercase no

default_color 666666
color1 888888
color2 AAAAAA
color3 DDDDDD
color4 CC3333

lua_load ~/.conky/conky_10.lua
lua_draw_hook_pre main_rings

TEXT
${image ~/.conky/conky10-pic/cpu.png   300x180  -p   0,10}
${image ~/.conky/conky10-pic/mem.png  300x180 -p 0,200}  
${image ~/.conky/conky10-pic/hdd.png  300x180 -p 0,390} 
${image ~/.conky/conky10-pic/net.png  300x180 -p 0,580} 

${voffset 0}
${goto 65}${font 6x10:size=7,weight:normal}${color}core 1:${goto 100}${cpu cpu1}%
${goto 65}${font 6x10:size=7,weight:normal}${color}core 2:${goto 100}${cpu cpu2}%
${voffset -45}
${goto 165}${font 6x10:size=5,weight:normal}${color2}${top name 1}${goto 220}${top pid 1}${goto 250}${top cpu 1}%
${goto 165}${font 6x10:size=5,weight:normal}${color}${top name 2}${goto 220}${top pid 2}${goto 250}${top cpu 2}%
${goto 165}${font 6x10:size=5,weight:normal}${color}${top name 3}${goto 220}${top pid 3}${goto 250}${top cpu 3}%
${goto 165}${font 6x10:size=5,weight:normal}${color}${top name 4}${goto 220}${top pid 3}${goto 250}${top cpu 4}%
${goto 165}${font 6x10:size=5,weight:normal}${color}${top name 5}${goto 220}${top pid 3}${goto 250}${top cpu 5}%
${goto 165}${font 6x10:size=5,weight:normal}${color}${threads} process 

${voffset 130}
${goto 55}${font 6x10:size=7,weight:normal}${color}RAM ${goto 90}$mem
${goto 55}${font 6x10:size=7,weight:normal}${color}SWAP ${goto 90}$swap
${voffset -45}
${goto 165}${font 6x10:size=5,weight:normal}${color2}${top_mem name 1}${goto 220}${top_mem pid 1}${goto 250}${top_mem mem 1}%
${goto 165}${font 6x10:size=5,weight:normal}${color}${top_mem name 2}${goto 220}${top_mem pid 2}${goto 250}${top_mem mem 2}%
${goto 165}${font 6x10:size=5,weight:normal}${color}${top_mem name 3}${goto 220}${top_mem pid 3}${goto 250}${top_mem mem 3}%
${goto 165}${font 6x10:size=5,weight:normal}${color}${top_mem name 4}${goto 220}${top_mem pid 3}${goto 250}${top_mem mem 4}%
${goto 165}${font 6x10:size=5,weight:normal}${color}${top_mem name 5}${goto 220}${top_mem pid 3}${goto 250}${top_mem mem 5}%

${voffset 130}
${goto 55}${font 6x10:size=7,weight:normal}${color}/home${goto 90}${fs_used /home}
${goto 55}${font 6x10:size=7,weight:normal}${color}/${goto 90}${fs_used /}
${goto 55}${diskiograph 10,80 AAAAAA AAAAAA}

${voffset -68}
${goto 160}${font Digital Readout Thick Upright:size=45}${time %k}:${time %M}

${voffset -40}
${goto 155}${color1}${font 6x10:size=7,weight:bold}${if_existing /proc/net/route eth0}eth0 ${addr eth0}
${goto 165}${color}${font 6x10:size=5,weight:normal}Down: ${downspeed eth0}
${goto 165}${color}${font 6x10:size=5,weight:normal}Up: ${upspeed eth0}
${goto 165}Total Down: ${totaldown eth0}
${goto 165}Total Up: ${totalup eth0}

${voffset -68}
${goto 155}${color1}${font 6x10:size=7,weight:bold}${else}${if_existing /proc/net/route wlan0}wifi ${addr wlan0}
${goto 165}${color}${font 6x10:size=5,weight:normal}AP: ${wireless_essid wlan0} ${goto 228}Speed: ${wireless_bitrate wlan0}
${goto 165}Mode: ${wireless_mode wlan0} ${goto 228}Quality: ${wireless_link_qual_perc wlan0}%
${goto 165}Down: ${downspeed wlan0}
${goto 165}Up: ${upspeed wlan0}
${goto 165}Total Down: ${totaldown wlan0}
${goto 165}Total Up: ${totalup wlan0} 
${else} ${goto 150}"Network Unavailable"
${endif} ${endif}
