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 meteogenerale
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 0

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

# -- 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

# color 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+lune4/icones/base/\1.png -p \2 -s \3}
template1 ${execpi 1800 sed -n '\1p'  ~/conky/meteo+lune4/maintenant}
template2 ${execpi 1800 sed -n '\1p'  ~/conky/meteo+lune4/cond_curr}
template3 ${execpi 1800 sed -n '\1p'  ~/conky/meteo+lune4/jour\2}
template4 ${execpi 1800 sed -n '\1p'  ~/conky/meteo+lune4/messagesfr}
template5 ${execpi 1800 sed -n '\1p'  ~/conky/meteo+lune4/listj}
template6 ${execpi 1800 sed -n '\1p'  ~/conky/meteo+lune4/phases}
template7 ${font Dejavu Sans:style=Bold:size=\1}
template8 ${font CorporateMonoExtraBold:size=\1}
template9 ${execpi 1800 sed -n '\1p'  ~/conky/meteo+lune4/centrage}

lua_load ~/conky/meteo+lune4/rotate.lua

TEXT
${voffset 42}${goto 215}${color6}${template7 17}Météo + Lune
${voffset -5}${goto 190}${color2}${template8 14}${lua main_rotate1}
${goto 190}${template9 1}${font}
${voffset 25}${goto 120}${color3}Humidité: ${alignr 20}${color2}${template2 32}
${goto 20}${color2}${template8 12}${template9 3}${font}${goto 120}${color3}Pression: ${alignr 20}${color2}${execpi 1800 sed -n '33p' ~/conky/meteo+lune4/cond_curr | cut -d" " -f1-2}${voffset -10}${font Dejavu Sans Mono:style=Bold:size=20}${execpi 1800 sed -n '33p' ~/conky/meteo+lune4/cond_curr | cut -d" " -f3}
${voffset -12}${goto 20}${color2}${template8 12}${template9 2}${font}${goto 120}${color3}Indice UV: ${alignr 20}${color2} ${template2 34}
${goto 120}${color3}Converture nuageuse: ${alignr 13}${color2}${template2 35} 
${goto 120}${color3}Point de rosée: ${alignr 20}${color2}${template9 19}
${goto 120}${color3}Visibilité: ${alignr 20}${color2}${template2 37}
${goto 120}${color3}Lever/Coucher: ${alignr 20}${color2}${template2 38}/${template2 39}

${voffset 9}${goto 120}${color6}${template8 13}Jour${goto 290}Nuit${font}${color}
${goto 60}${color2}${template8 10}${template9 4}${goto 235}${template9 5}
${offset -20}${goto 60}${lua main_rotate2}${goto 235}${lua main_rotate3}
${voffset 120}${goto 50}${color3}${template5 4}${goto 142}${template5 6}${goto 234}${template5 8}${goto 326}${template5 10}${color}
${voffset 45}${goto 18}${color2}${template9 9}${goto 108}${template9 12}${goto 198}${template9 15}${goto 288}${template9 18}${color}
${voffset 12}${goto 50}${color6}${template7 15}Calendrier Lunaire${font}
${voffset -5}${goto 50}${color2}${template7 9}( Hémisphère ${execpi 1800 sed -n 22p ~/conky/meteo+lune4/meteo.cfg | awk -F'"' '{print $2}'} en GMT+1 Paris )${font}
${voffset 5}${offset 35}${alignr 140}${color2}${template6 3}
${offset 40}${color3}Visibilité:${alignr 145}${color2}${template6 5}
${offset 40}${color3}Apogée:${alignr 135}${color2}${template6 21}
${offset 40}${color3}Périgée:${alignr 120}${color2}${template6 19}
${offset 40}${color3}Phase${alignr 20}${color2}${template6 13}/${template6 15}
${offset 40}${color3}Noeud lunaire:${alignr 20}${color2}${template6 23}
${offset 40}${color3}Distance Lune-Terre:${alignr 20}${color2}${template6 7}
${offset 40}${color3}Age de la lune:${alignr 20}${color2}${template6 9}
${offset 40}${color3}Lever/Coucher:${color2}${template7 9}( Heure locale )$font}${alignr 20}${color2}${template2 41}/${template2 42}
${voffset 10}${color6}${alignc -10}${template7 13}${template6 10}${font}
${voffset 65}${alignc}${color2}${template7 13}${template6 11}${font}
${voffset 20}${goto 30}${template8 13}${color3}${template9 20}
${goto 30}${template9 21}
${template0 fond_gen 0,0 406x981}
${template0 fond23x866 0,115 23x866}
#${template0 line200x6 208,35 170x6}
${template0 line330x12 130,120 266x12}
${template0 cc 0,0 204x151}
${template0 lateralf 4,125 15x851}
${template0 vcc 36,200 80x80}
# ${template0 lignehorz 2,282 355x2}
# ${template0 lignevert 185,269 2x50}
# ${template0 p_5jours 4,320 14x251}
${template0 J1jour 78,363 122x90}
${template0 jourcc_v 224,340 18x125}
${template0 J1soir 248,363 122x90}
# ${template0 lignehorz 2,399 355x2}
${template0 jour_v 36,441 17x41}
${template0 J2jour 53,439 81x60}
${template0 J3jour 142,439 81x60}
${template0 J4jour 234,439 81x60}
${template0 J5jour 326,439 81x60}
${template0 nuit_v 38,497 13x42}
${template0 J2soir 53,489 81x60}
${template0 J3soir 142,489 81x60}
${template0 J4soir 234,489 81x60}
${template0 J5soir 326,489 81x60}
${template0 line330x12 35,560 360x12}
# ${template0 lunegmt1 4,580 15x376}
${template0 lune3 265,560 150x150}
${template0 partial 105,835 35x35}
${template0 total 290,835 35x35}
${template0 line330x12 35,915 360x12}
#${template0 line330x12 50,975 330x12}
