# -- Conky settings -- #
background yes
update_interval 1

cpu_avg_samples 2
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 2048
# -- Window specifications -- #

own_window_title meteocurrent
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,sticky,skip_taskbar,skip_pager,below

border_inner_margin 0
border_outer_margin 0

minimum_size 416 336
maximum_width 416
	

alignment top_right
gap_x 5
gap_y 25

# -- Graphics settings -- #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# -- Text settings -- #
use_xft yes
xftfont CorporateMonoExtraBold:size=11
xftalpha 1

uppercase no

# Couleurs
default_color FFFFFF #blanc
default_shade_color 000000
default_outline_color black

# color1 e49c16
color1 b9b4b0 #gris rosé
color2 3bfb00 #vert
color3 f9f210 #jaune
color6 f298eb #mauve
color7 f3ec1f #jaune
color8 CCCCCC
color9 BBBBBB

# -- Declaration template -- #
template0 ${image  ~/conky/meteo_english/icones/base/\1.png -p \2 -s \3}
template7 ${font font Dejavu Sans:style=Bold:size=\1}
template8 ${font CorporateMonoExtraBold:size=\1}
template9 ${execpi 1800 sed -n '\1p'  ~/conky/meteo_english/centering}

lua_load ~/conky/meteo_english/rotate.lua

#${if_match ${exec echo $(($(date -d 'tomorrow 00:00:00' +%s) - $(date +%s)))} == 86385}${execp ~/conky/meteo_english/meteo_refresh.sh}${else}${execpi 1800 ~/conky/meteo_english/choice.sh}${endif}

TEXT
${voffset 40}${goto 225}${color6}${template7 17}Meteo+Moon
${goto 190}${color2}${template8 14}${lua main_rotate1}
${goto 190}${template9 1}${font}
${voffset 20}${color2}${goto 30}${template8 12}${template9 2}${font}
${voffset 10}${alignc -30}${color3}${template8 14}${lua main_rotate14}
${alignc -45}${color2}${template7 12}${lua main_rotate15}
${voffset 20}${goto 35}${color2}${template8 12}${template9 3}
${voffset 10}${offset -15}${template8 15}${color3}${template9 20}
${offset -15}${template9 21}
${template0 fond_cc 0,0 416x336}
${template0 line330x12 130,120 266x12}
${template0 cc 0,0 204x151}
${template0 wcc 46,155 80x80}
${voffset -150}
