
######################
# - Conky settings - #
######################
update_interval 1
total_run_times 0
net_avg_samples 1
cpu_avg_samples 1
if_up_strictness link
 
imlib_cache_size 0
double_buffer yes
no_buffers yes
 
format_human_readable
 
#####################
# - Text settings - #
#####################
use_xft yes
xftfont Ubuntu:size=8:style=bold
override_utf8_locale yes
text_buffer_size 2048
 
#############################
# - Window specifications - #
#############################
own_window_class Conky
own_window yes
own_window_type normal
own_window_argb_visual yes
own_window_argb_value 1
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
 
alignment top_right
gap_x 0
gap_y 40
minimum_size 182 600
maximum_width 182
 
default_bar_size 60 8
 
#########################
# - Graphics settings - #
#########################
draw_shades no
 
default_color FFFFFF

TEXT
############
# - DATE - #
############
${image ~/conky/images/bg.png -p 0,0 -s 163x33} 
${alignc 11}${voffset -2}${time %A} ${time %d} ${time %B} ${time %Y}
###########
# - CPU - #
###########
${image ~/conky/images/bg.png -p 0,35 -s 163x33} 
${goto 17}${voffset 10}CPU1: ${goto 135}${cpu cpu1}%
###########
# - CPU2- #
###########
${image ~/conky/images/bg.png -p 0,70 -s 163x33} 
${goto 17}${voffset 12}CPU2: ${goto 135}${cpu cpu2}%
# - MEM - #
###########
${image ~/conky/images/bg.png -p 0,105 -s 163x33} 
${goto 17}${voffset 10}MEM: ${goto 135}${memperc}%
# - MEM - #
###########
# - HDD - #
${image ~/conky/images/bg.png -p 0,140 -s 163x33} 
${goto 17}${voffset 12}HOME: ${goto 135}${fs_used_perc /home}%
${image ~/conky/images/bg.png -p 0,175 -s 163x33} 
${goto 17}${voffset 11}ROOT: ${goto 135}${fs_used_perc /}%
###########
# - KERNEL - #
${image ~/conky/images/bg.png -p 0,210 -s 163x33} 
${goto 17}${voffset 12}Kernel : ${goto 88}${kernel}
###########
# - METEO - #
${execi 300 curl -s "http://weather.yahooapis.com/forecastrss?w=721943&u=c" -o ~/.cache/weather.xml}
${image ~/conky/images/bg.png -p 0,245 -s 163x33} 
${execi 300 cp -f ~/icons/$(grep "yweather:condition" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*").png ~/.cache/weather-1.png}${image ~/.cache/weather-1.png -p 15,252 -s 16x16}${execi 300 cp -f ~/icons/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2').png ~/.cache/weather-2.png}${image ~/.cache/weather-2.png -p 45,252 -s 16x16}${execi 300 cp -f ~/icons/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3').png ~/.cache/weather-3.png}${image ~/.cache/weather-3.png -p 75,252 -s 16x16}${execi 300 cp -f ~/icons/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4').png ~/.cache/weather-4.png}${image ~/.cache/weather-4.png -p 105,252 -s 16x16}${execi 300 cp -f ~/icons/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==5').png ~/.cache/weather-5.png}${image ~/.cache/weather-5.png -p 135,252 -s 16x16}
${image ~/conky/images/bg.png -p 0,280 -s 163x33}
${goto 16}${voffset 9}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1' | tr '[a-z]' '[a-z]'}
${goto 48}${voffset -12}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2' | tr '[a-z]' '[a-z]'}
${goto 79}${voffset -12}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3' | tr '[a-z]' '[a-z]'}
${goto 110}${voffset -12}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4' | tr '[a-z]' '[a-z]'}
${goto 140}${voffset -12}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==5' | tr '[a-z]' '[a-z]'}
###########
# - TRASH - #
${image ~/conky/images/bg.png -p 0,315 -s 163x33}
${goto 17}${voffset 12}TRASH :${goto 135}${execi 60 find ~/.local/share/Trash/files -type f | wc -l}