own_window yes
own_window_type override
own_window_transparent yes
#own_window_hints below,skip_taskbar,skip_pager
own_window_hints undecorated,normal,skip_taskbar,sticky,skip_pager

own_window_title sun-moon
own_window_class sun-moon

#override_utf8_locale yes
#use_xft yes
update_interval 5
#stippled_borders 0
#border_inner_margin 0
#border_width 0
#default_outline_color black
#default_shade_color black
#draw_borders no
#draw_graph_borders no
#draw_outline no
#draw_shades no

# Colours
default_color 000000

text_buffer_size 512
double_buffer yes
#no_buffers yes
#short_units yes
#pad_percents 0
#imlib_cache_size 0

minimum_size 380 310
alignment top_right
gap_x 5
gap_y 30
#xftfont snap:bold:size=8
#xftalpha 1.0


lua_load ~/.conky/sun.lua
lua_draw_hook_pre draw_fig

default_color 8b8b8b
	# -- Déclaration template -- #
	template0 ${image ~/.conky/scripts/images/\1 -p \2 -s \3} # -- images fond -- #
	template1 ${lua Meteo_\1 \2 \3 \4 \5 \6} # -- gestion météo --#
	template2 ${lua_parse Meteo_\1 \2 \3 \4 60 \5} # -- icônes météo -- \2=répertoire icônes \3=position \4=taille \5=jour (pour les prévisions) #
	template3 ${lua Lune_\1} 
	template4 ${lua_parse Images_\1 \2 \3 60 \4} # -- Appelle image -- \2=position \3=taille \4=jour (pour les prévisions) #
	
	lua_load ~/.conky/scripts/meteo.lua
	lua_startup_hook init ~/.conky/scripts/meteo.cfg




TEXT
#${image ~/.conky/SunEarth_SH.png -p 170,170 -s 50x50}
#### Lancement du script récupérant les données météo ####
${template1 Maj}
${image /tmp/lune.png -p 310,25 -s 44x44 -f 60}
${execi 30 sh /home/idem/.conky/im_little.sh}
${image /home/idem/image1.png -p 145,153 -s 100x80 -f 30}