Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#301 Le 08/04/2019, à 07:26

Mobidique

Re : Nos bureaux Xfce (Xubuntu, Voyager, Ubuntu Studio...)

@ nam1962, melixgaro, autre> c'est dans la seconde capture d'écran.


Debian buster : job laptop & desktop, sons desktops, latitude D420 branché sur l'ampli familial, home laptop & wife's laptop

Hors ligne

#302 Le 08/04/2019, à 07:31

zephirin

Re : Nos bureaux Xfce (Xubuntu, Voyager, Ubuntu Studio...)

Tu peux nous dire d'où tu sors cette image s'il te plaît ?


AIO tactile 27" Samsung  i5 8GB DDR3 W11 - tour Antec Asus P5GCMX1333 W11
iMac 27" fin 2009 i5 750 16GBssd2TB cg512 HighSierra - MacBookAir 13" 2017 i5 8GB ssd120 Monterey - MacBookPro mi 2012 8GB DDR3 Catalina

Hors ligne

#303 Le 08/04/2019, à 09:22

HP

Re : Nos bureaux Xfce (Xubuntu, Voyager, Ubuntu Studio...)

zephirin a écrit :

Tu peux nous dire d'où tu sors cette image s'il te plaît ?

hein ?


cat /dev/urandom >/dev/null 2>&1 #github

Hors ligne

#304 Le 08/04/2019, à 12:23

Coeur Noir

Re : Nos bureaux Xfce (Xubuntu, Voyager, Ubuntu Studio...)

HP, zephirin songe sans doute au fond d'écran…


DébuterDocBien rédigerRetour commandeInsérer image | illustrations & captures d'écran <>

Hors ligne

#305 Le 08/04/2019, à 13:59

HP

Re : Nos bureaux Xfce (Xubuntu, Voyager, Ubuntu Studio...)


cat /dev/urandom >/dev/null 2>&1 #github

Hors ligne

#306 Le 08/04/2019, à 17:34

zephirin

Re : Nos bureaux Xfce (Xubuntu, Voyager, Ubuntu Studio...)

Parfait, merci !


AIO tactile 27" Samsung  i5 8GB DDR3 W11 - tour Antec Asus P5GCMX1333 W11
iMac 27" fin 2009 i5 750 16GBssd2TB cg512 HighSierra - MacBookAir 13" 2017 i5 8GB ssd120 Monterey - MacBookPro mi 2012 8GB DDR3 Catalina

Hors ligne

#307 Le 19/04/2019, à 14:35

Robert Algoud

Re : Nos bureaux Xfce (Xubuntu, Voyager, Ubuntu Studio...)

Rêver pour arriver plus vite à l'été....


1555681429.png


1555681488.png


Ubuntu depuis Hardy Héron (08.04) - Xubuntu 22.04 LTS

Hors ligne

#308 Le 23/04/2019, à 09:24

Pascaltech

Re : Nos bureaux Xfce (Xubuntu, Voyager, Ubuntu Studio...)

Robert Algoud a écrit :

Rêver pour arriver plus vite à l'été....

Bonjour,

Bravo, superbe. Peux-tu préciser ton thème et tes réglages ? Merci.

Dernière modification par Pascaltech (Le 23/04/2019, à 09:26)


Emachine el1200, Xubuntu 20.04 LTS
Traductions guides serveur & grub et liens utiles Classement CG
inxi -F sudo lshw dpkg -l

Hors ligne

#309 Le 23/04/2019, à 17:17

Robert Algoud

Re : Nos bureaux Xfce (Xubuntu, Voyager, Ubuntu Studio...)

Salut Pascaltech

Sur une Xubuntu 18.04.1
Apparence
Thème bureau : Shiki-Brave
Icônes : Gnome-Brave

Gestionnaire fenêtres
Style : Greybird-accessibility

Opacité des tableaux de bord : 0

Il n'y a plus qu'à trouver le fond d'écran qui va bien.

et une super console en prime qui s'affiche et se cache avec une touche de clavier tout en continuant à tourner

1556037701.png

Dernière modification par Robert Algoud (Le 23/04/2019, à 17:31)


Ubuntu depuis Hardy Héron (08.04) - Xubuntu 22.04 LTS

Hors ligne

#310 Le 24/04/2019, à 05:46

zephirin

Re : Nos bureaux Xfce (Xubuntu, Voyager, Ubuntu Studio...)

Et le lien pour le fond d'écran ?


AIO tactile 27" Samsung  i5 8GB DDR3 W11 - tour Antec Asus P5GCMX1333 W11
iMac 27" fin 2009 i5 750 16GBssd2TB cg512 HighSierra - MacBookAir 13" 2017 i5 8GB ssd120 Monterey - MacBookPro mi 2012 8GB DDR3 Catalina

Hors ligne

#311 Le 27/04/2019, à 08:39

loutch

Re : Nos bureaux Xfce (Xubuntu, Voyager, Ubuntu Studio...)

Bonjour

nam1962 a écrit :

@loutch : Quel thème, quels réglages ? wink

melixgaro a écrit :

Bonjour,

à loutch : oui, si tu veux bien nous donner des détails sur les conkys aussi… merci

Pas de problème (désolé pour le retard)

style : Qogir-light
fenêtre : BlueSky-light
icone: Elementary GTK Dark B 3G

conky meteo ( il faut le pack accuweather de Théo ici https://forums.bunsenlabs.org/viewtopic.php?id=189 et le pack de chepioq pour le vent ici https://sd-1.archive-host.com/membres/u … rk_sky.zip)

le conkyrc (version  1.10)

conky.config = {
	background = true,  --true si transparent
	use_xft = true,
	font = 'Liberation Sans:size=7',
	xftalpha = 1,
	update_interval = 1.0,
	total_run_times = 0,
	own_window = true,
	own_window_transparent = false,  
        own_window_argb_visual = true,
        own_window_argb_value = 0,     -- 0 transparent 255 plein
	own_window_type = 'normal',
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
	double_buffer = true,
	minimum_width = 360, minimum_height = 480,
        maximum_width = 360,
	text_buffer_size = 2048,
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,
	default_color = 'white',
	default_outline_color = 'white',
	alignment = 'top_left',
	gap_x = 110,
	gap_y = 120,
	no_buffers = true,
	uppercase = false,
	cpu_avg_samples = 2,
	override_utf8_locale = true,
        imlib_cache_flush_interval = 60,
	imlib_cache_size = 10000,
	stippled_borders = 5,
        default_shade_color = '#333333',
	default_outline_color = 'black',

lua_load = '~/.conky/lua/image.lua',



color1 = 'F5B800',
color2 = '00f5ff',
color3 = '828200',
color4 = '323200',

}

conky.text = [[
${execi 1800 bash $HOME/1_accuweather/1_accuweather -f2015}${execi 3600 bash $HOME/1_accuweather/alertes.sh}${voffset -15}
   ${goto 50}${font DejaVuSansMono:bold:size=8}${color2}Actuellement${color1}${font} ${font DejaVuSansMono:bold:size=8}${goto 140}${color1}${execi 90 sed -n '2p' $HOME/1_accuweather/curr_cond}°C  Res.: ${execi 90 sed -n '3p' $HOME/1_accuweather/curr_cond} °C 
   ${color1}${goto 50}${execi 90 sed -n '4p' $HOME/1_accuweather/curr_cond}
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_0.png 0 0 50 30}
   ${goto 50}${font DejaVuSansMono:bold:size=8}${color2}${execi 90 sed -n '1p' $HOME/1_accuweather/first_days}${font}${color1} ${color2}${goto 140}${if_match "${execi 90 sed -n '4p' $HOME/1_accuweather/first_days}" == "Min."}${else}${execi 90 sed -n '4p' $HOME/1_accuweather/first_days}° /${endif}${color1} ${execi 90 sed -n '3p' $HOME/1_accuweather/first_days}°
   ${goto 50}${execi 90 sed -n '5p' $HOME/1_accuweather/first_days}
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_1.png 0 38 50 30}
   ${goto 50}${color2}${execi 3600 date --date="1 day" | awk '{print $1" "$2}' | tr '[a-z]' '[A-Z]'}${font}${color1} ${color2}${goto 140}${execi 90 sed -n '9p' $HOME/1_accuweather/first_days}°/${color1} ${execi 90 sed -n '8p' $HOME/1_accuweather/first_days}°
   ${goto 50}${execi 90 sed -n '10p' $HOME/1_accuweather/first_days}
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_2.png 0 70 50 30}
   ${goto 50}${color2}${execi 3600 date --date="2 day" | awk '{print $1" "$2}' | tr '[a-z]' '[A-Z]'}${font}${color1} ${color2}${goto 140}${execi 90 sed -n '14p' $HOME/1_accuweather/first_days}°/${color1} ${execi 90 sed -n '13p' $HOME/1_accuweather/first_days}°
   ${goto 50}${execi 90 sed -n '15p' $HOME/1_accuweather/first_days}
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_3.png 0 105 50 30}
   ${goto 50}${color2}${execi 3600 date --date="3 day" | awk '{print $1" "$2}' | tr '[a-z]' '[A-Z]'}${font}${color1} ${color2}${goto 140}${execi 90 sed -n '19p' $HOME/1_accuweather/first_days}°/${color1} ${execi 90 sed -n '18p' $HOME/1_accuweather/first_days}°
   ${goto 50}${execi 90 sed -n '20p' $HOME/1_accuweather/first_days}
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_4.png 0 138 50 30}
   ${goto 50}${color2}${execi 3600 date --date="4 day" | awk '{print $1" "$2}' | tr '[a-z]' '[A-Z]'}${font}${color1} ${color2}${goto 140}${execi 90 sed -n '24p' $HOME/1_accuweather/first_days}°/${color1} ${execi 90 sed -n '23p' $HOME/1_accuweather/first_days}°
   ${goto 50}${execi 90 sed -n '25p' $HOME/1_accuweather/first_days}
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_5.png 0 170 50 30}
   ${goto 50}${color2}${execi 3600 date --date="5 day" | awk '{print $1" "$2}' | tr '[a-z]' '[A-Z]'}${font}${color1} ${color2}${goto 140}${execi 90 sed -n '4p' $HOME/1_accuweather/last_days}°/${color1} ${execi 90 sed -n '3p' $HOME/1_accuweather/last_days}°
   ${goto 50}${execi 90 sed -n '5p' $HOME/1_accuweather/last_days}
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_6.png 0 206 50 30}
${goto 50}${color2}${execi 3600 date --date="6 day" | awk '{print $1" "$2}' | tr '[a-z]' '[A-Z]'}${font}${color1} ${color2}${goto 140}${execi 90 sed -n '9p' $HOME/1_accuweather/last_days}°/${color1} ${execi 90 sed -n '8p' $HOME/1_accuweather/last_days}°
   ${goto 50}${execi 90 sed -n '10p' $HOME/1_accuweather/last_days}
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_7.png 0 239 50 30}
${goto 50}${color2}${execi 3600 date --date="7 day" | awk '{print $1" "$2}' | tr '[a-z]' '[A-Z]'}${font}${color1} ${color2}${goto 140}${execi 90 sed -n '14p' $HOME/1_accuweather/last_days}°/${color1} ${execi 90 sed -n '13p' $HOME/1_accuweather/last_days}°
   ${goto 50}${execi 90 sed -n '15p' $HOME/1_accuweather/last_days}
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_8.png 0 272 50 30}
${lua fDrawImage $HOME/1_accuweather/Wind1.png 80 350 60 60}
${color2}${goto 50}${font DejaVuSansMono:bold:size=10} Sarreguemines FRANCE ${font}

${color2}Humidité        ${color1}${goto 160}${execi 90 sed -n '7p' $HOME/1_accuweather/curr_cond}
${color2}Pression        ${color1}${goto 160}${execi 90 sed -n '8p' $HOME/1_accuweather/curr_cond}
${color2}Vent            ${color1}${goto 160}${execi 90 sed -n '5p' $HOME/1_accuweather/curr_cond} à ${execi 90 sed -n '6p' $HOME/1_accuweather/curr_cond}
${color2}Visiblité       ${color1}${goto 160}${execi 90 sed -n '13p' $HOME/1_accuweather/curr_cond} 
${color2}Indice UV       ${color1}${goto 160}${execi 90 sed -n '9p' $HOME/1_accuweather/curr_cond}
${color2}Plafond         ${color1}${goto 160}${execi 90 sed -n '11p' $HOME/1_accuweather/curr_cond} 
${color2}Point de rosée  ${color1}${goto 160}${execi 90 sed -n '12p' $HOME/1_accuweather/curr_cond} ° 

${color2}Soleil de       ${color1}${goto 160}${execi 3600 sed -n '14p' $HOME/1_accuweather/curr_cond}${color2} à ${color1}${execi 3600 sed -n '15p' $HOME/1_accuweather/curr_cond} ${color2}soit ${color1}${execi 3600 sed -n '16p' $HOME/1_accuweather/curr_cond}
${color2}Lune de         ${color1}${goto 160}${execi 3600 sed -n '18p' $HOME/1_accuweather/curr_cond}${color2} à ${color1}${execi 3600 sed -n '19p' $HOME/1_accuweather/curr_cond} ${color2}soit ${color1}${execi 3600 sed -n '20p' $HOME/1_accuweather/curr_cond}

${color2}${execi 600  sed -n '2p' $HOME/1_accuweather/Alertes}
${color2}${execi 602  sed -n '1p' $HOME/1_accuweather/Alertes}
${voffset -40}

alertes.sh

#!/bin/bash


#### Alertes ####
lynx --source -accept_all_cookies > $HOME/1_accuweather/Alertes http://www.accuweather.com/fr/fr/sarreguemines/135050/weather-forecast/135050
sed -i 's/\r//' $HOME/1_accuweather/Alertes
message1=$(sed -n '/<span>Perspectives<\/span>/ { n;p; }' $HOME/1_accuweather/Alertes)
message2=$(sed -n '/^[ \t]*<em>.*<\/em>$/p' $HOME/1_accuweather/Alertes)
echo $message1 > $HOME/1_accuweather/Alertes
echo $message2 >> $HOME/1_accuweather/Alertes
sed -i -e 's/<p>//' -e 's/<\/p>.*$//' -e 's/<em>//' -e 's/<\/em>//' $HOME/1_accuweather/Alertes
char_1rst_line=$(sed -n 1p $HOME/1_accuweather/Alertes|wc -c)
if (( $char_1rst_line <= 1 )); then
  sed -i '1s/^$/RAS/' $HOME/1_accuweather/Alertes
fi
char_2nd_line=$(sed -n 2p $HOME/1_accuweather/Alertes|wc -c)
if (( $char_2nd_line <= 1 )); then
  sed -i '2s/^$/RAS/' $HOME/1_accuweather/Alertes

fi

Pression atmosphérique

ici

https://forums.bunsenlabs.org/viewtopic … 685#p84685

barometre

pack ici https://www.deviantart.com/shamen456/ar … -254410017

attention j'ai 3 conkys superposés (version 1.10 et lua c'est pas ça si pas de lua pour afficher les images 2 conkyrc suffisent)

conkyrc (pour afficher les images avec du lua)

conky.config = {
	background = true,
	use_xft = true,
	font = 'Liberation Sans:size=7',
	xftalpha = 1,
	update_interval = 1.0,
	total_run_times = 0,
	own_window = true,
	own_window_transparent = true,
--own_window_color 000000
own_window_argb_visual = true,
--own_window_argb_value = 250,
	own_window_type = 'normal',
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
	double_buffer = true,
	minimum_width = 200, minimum_height = 200,
        maximum_width = 200,
	text_buffer_size = 2048,
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,
	default_color = 'white',
	default_outline_color = 'white',
	alignment = 'top_left',
	gap_x = 400,
	gap_y = 230,
	no_buffers = true,
	uppercase = false,
	cpu_avg_samples = 2,
	override_utf8_locale = true,
imlib_cache_flush_interval = 60,
	imlib_cache_size = 10000,


-- Taille des pointillés
	stippled_borders = 5,

-- Couleurs
	default_color = '#ffffff',--ffd579
	default_shade_color = '#333333',
	default_outline_color = 'black',

 lua_load = '~/.conky/lua/image.lua',
 

color1 = 'D2CBC1',
color2 = 'red',
color3 = '6495ee',
color4 = 'B1ADA7',
color5 = '7B7870',
color6 = '3F3C36',
color7 = '000000',
 
};

conky.text = [[
 
${lua fDrawImage ~/.conky/baro/images/15.png   0 90 40 40}
${lua fDrawImage ~/.conky/baro/images/18.png   2 50 40 40}
${lua fDrawImage ~/.conky/baro/images/12.png  25 20 40 40}
${lua fDrawImage ~/.conky/baro/images/13.png  60  0 40 40}
${Lua fDrawImage ~/.conky/baro/images/3.png  110  0 40 40}
${Lua fDrawImage ~/.conky/baro/images/4.png  145 20 40 40}
${lua fDrawImage ~/.conky/baro/images/2.png  160 50 40 40}
${lua fDrawImage ~/.conky/baro/images/1.png  165 90 40 40}
${alignc}${execi 90 sed -n '8p' $HOME/1_accuweather/curr_cond} mb
${font Ubuntu:style=Bold:size=14}
${voffset -1}${goto 22}${color2}T${execi 90 sed -n '2p' $HOME/1_accuweather/curr_cond}° ${goto 140}${color3}R${execi 90 sed -n '3p' $HOME/1_accuweather/curr_cond}°

]];

conkyrc1 (pour le lua text-writting.lua)

conky.config = {
	background = true,
	use_xft = true,
	font = 'Liberation Sans:size=7',
	xftalpha = 1,
	update_interval = 1.0,
	total_run_times = 0,
	own_window = true,
	own_window_transparent = true,
--own_window_color 000000
own_window_argb_visual = true,
--own_window_argb_value = 250,
	own_window_type = 'normal',
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
	double_buffer = true,
	minimum_width = 200, minimum_height = 200,
        maximum_width = 200,
	text_buffer_size = 2048,
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,
	default_color = 'white',
	default_outline_color = 'white',
	alignment = 'top_left',
	gap_x = 400,
	gap_y = 230,
	no_buffers = true,
	uppercase = false,
	cpu_avg_samples = 2,
	override_utf8_locale = true,
imlib_cache_flush_interval = 60,
	imlib_cache_size = 10000,


-- Taille des pointillés
	stippled_borders = 5,

-- Couleurs
	default_color = '#ffffff',--ffd579
	default_shade_color = '#333333',
	default_outline_color = 'black',

--  lua_load = '~/.conky/lua/image.lua',
 lua_load = ' ~/.conky/baro/textwriting.lua',
 lua_draw_hook_post = 'draw_text',


color1 = 'D2CBC1',
color2 = 'red',
color3 = 'blue',
color4 = 'B1ADA7',
color5 = '7B7870',
color6 = '3F3C36',
color7 = '000000',
 
};

conky.text = [[

]];

conkyrc2 ( pour le baro.lua)

conky.config = {
	background = true,
	use_xft = true,
	font = 'Liberation Sans:size=7',
	xftalpha = 1,
	update_interval = 1.0,
	total_run_times = 0,
	own_window = true,
	own_window_transparent = true,
--own_window_color 000000
own_window_argb_visual = true,
--own_window_argb_value = 250,
	own_window_type = 'normal',
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
	double_buffer = true,
	minimum_width = 200, minimum_height = 200,
        maximum_width = 200,
	text_buffer_size = 2048,
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,
	default_color = 'white',
	default_outline_color = 'white',
	alignment = 'top_left',
	gap_x = 400,
	gap_y = 230,
	no_buffers = true,
	uppercase = false,
	cpu_avg_samples = 2,
	override_utf8_locale = true,
imlib_cache_flush_interval = 60,
	imlib_cache_size = 10000,


-- Taille des pointillés
	stippled_borders = 5,

-- Couleurs
	default_color = '#ffffff',--ffd579
	default_shade_color = '#333333',
	default_outline_color = 'black',

--  lua_load = '~/.conky/lua/image.lua',
 lua_load = ' ~/.conky/baro/baro.lua',
 lua_draw_hook_pre = 'main',


color1 = 'D2CBC1',
color2 = 'red',
color3 = 'blue',
color4 = 'B1ADA7',
color5 = '7B7870',
color6 = '3F3C36',
color7 = '000000',
 
};

conky.text = [[

]];

Position du soleil

conkyrc (pour le lua

conky.config = {
	background = true,
	use_xft = true,
	font = 'Liberation Sans:size=7',
	xftalpha = 1,
	update_interval = 1.0,
	total_run_times = 0,
	own_window = true,
	own_window_transparent = true,
--own_window_color 000000
own_window_argb_visual = true,
--own_window_argb_value = 250,
	own_window_type = 'normal',
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
	double_buffer = true,
	minimum_width = 480, minimum_height = 470,
        maximum_width = 480,
	text_buffer_size = 2048,
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,
	default_color = 'white',
	default_outline_color = 'white',
	alignment = 'top_left',
	gap_x = 320,
	gap_y = 340,
	no_buffers = true,
	uppercase = false,
	cpu_avg_samples = 2,
	override_utf8_locale = true,
imlib_cache_flush_interval = 60,
	imlib_cache_size = 10000,


-- Taille des pointillés${execi 35000 bash $HOME/2_Wunderground_API/2_wun}
	stippled_borders = 5,

-- Couleurs
	default_color = '#ffffff',--ffd579
	default_shade_color = '#333333',
	default_outline_color = 'black',

 

lua_load = '~/.conky/soleil/soleil.lua',
 lua_draw_hook_pre = 'draw_fig',
 
};

conky.text = [[


]];

le soleil.lua

--sun position lua script by mrpeachy 2010 version 2 includes moon position
--############################################################
--############################################################
--input latitude
--for northern hemisphere enter positive
--for southern hemisphere enter negative
latitude=-49.10
longitude=7.06
--input hemisphere
--for northern enter 1
--for southern enter 2
hemisphere=2
--daylight saving? 1=yes, 0=no
dst=0
--position - this is the point where the N-S line crosses the horizon line
--the .5 helps make lines look sharper
across=200.5
down=200.5
--############################################################
--############################################################
require 'cairo'
function cos(x)
a=math.cos(math.rad(x))
return a
end
function sin(x)
a=math.sin(math.rad(x))
return a
end
function tan(x)
a=math.tan(math.rad(x))
return a
end
function addzero10(num)
if tonumber(num) < 10 then
return "0" .. num
else
return num
end
end
function round(val, decimal)
  if (decimal) then
    return math.floor( (val * 10^decimal) + 0.5) / (10^decimal)
  else
    return math.floor(val+0.5)
  end
end
function string:split(delimiter)
local result = { }
local from  = 1
local delim_from, delim_to = string.find( self, delimiter, from  )
while delim_from do
table.insert( result, string.sub( self, from , delim_from-1 ) )
from  = delim_to + 1
delim_from, delim_to = string.find( self, delimiter, from  )
end
table.insert( result, string.sub( self, from  ) )
return result
end
function datan2(y, x)
    if x == 0 and y == 0 then 
        return 0 
        else a = math.atan(math.rad(y / x))
    end
    if (x < 0) then
    a = a + 180
        else if y < 0 and x > 0 then
        a = a + 360
        end
    end
return math.rad(a)
end
function ipart(x)
if (x> 0) then
a = math.floor(x)
else a = math.ceil(x);
end
return a
end
function range(x)
    b = x / 360;
    a = 360 * (b - ipart(b));
    if a  < 0 then
        a = a + 360
end
    return a
end
function ranget(x)
    b = x / 24;
    a = 24 * (b - ipart(b));
    if a  < 0 then
        a = a + 24
end
    return a
end
function rangei(x)
    b = x / 1440;
    a = 1440 * (b - ipart(b));
    if a  < 0 then
        a = a + 1440
end
    return a
end
--################################################################################################################################################
--###########   MAIN FUNCTION   ########################################################################################################
--################################################################################################################################################
--################################################################################################################################################
function conky_draw_fig()
if conky_window == nil then return end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
cr = cairo_create(cs)
local updates=tonumber(conky_parse('${updates}'))
--###########   START FUNCTION   ########################################################################################################
if updates > 5 then
--###########   SET HEMISPHERE   ########################################################################################################
if hemisphere==1 then 
start=0
else
start=180
end
--################ sets daylignt saving #####################################3
if dst==1 then ds=-1 else ds=0 end
--################################################################################################################################################
--################################################################################################################################################
--###########  calculate julian time   ########################################################################################################
--################################################################################################################################################
--################################################################################################################################################
M=os.date("%m") --month
K=os.date("%G") --4 digit year
I=(os.date("%d"))--day of month
H=ranget((os.date("%H"))+ds) --hours
Min=os.date("%M")
Mi=(os.date("%M"))/60 --minutes expressed as hours
--current Julian time-----------------------------------------------------------------
JD=round((367*K)-((7*(K+((M+9)/12)))/4)+((275*M)/9)+I+1721013.5,0)+0.5+((H+Mi)/24)
--------------------------------------------------------------------------------------
days=(JD)-2451545.0 --correct
T=days/36525 --correct
--Julian time at preceeding midnight
JD0=round((367*K)-((7*(K+((M+9)/12)))/4)+((275*M)/9)+I+1721013.5,0)+0.5
D0=JD0-2451545.0
--###########  calculate sidereal time   ########################################################################################################
--current sidereal time
CST=6.697374558+(0.06570982441908*D0)+(1.00273790935*(H+Mi))
-----------------------------------------------------------------
GMST = 6.697374558 + (0.06570982441908*D0) + (1.00273790935*(H+Mi)) + (0.000026*(T^2))
ADJ=longitude/15
GMST24=ranget(GMST)
GMST24S=string.split(GMST24, "%p")
GMST24H=GMST24S[1]
GMST24M=string.len(GMST24S[2])
GMST24M=GMST24S[2]/(10^(GMST24M))*60
GMST24M=string.split(GMST24M,"%p")
GMST24M=GMST24M[1]
sgtime=(GMST24H*60)+GMST24M
-------------------------------------------------------------
day=os.date("%j")
B=(360/365)*(day-81)
eot=(9.87*math.sin(2*B))-(7.53*math.cos(B))-(1.5*math.sin(B))
LSTM=15*10
TC=(4*(LSTM-longitude))+eot
LT=((H)*60)+Min
LST=LT+(TC/60)
---------------------------------------
LST24=ranget(LST/60)
LST24S=string.split(LST24, "%p")
LST24H=LST24S[1]
LST24M=string.len(LST24S[2])
LST24M=(LST24S[2]/(10^(LST24M)))*60
LST24M=string.split(LST24M,"%p")
LST24M=LST24M[1]
--below is current solar time
stime=(LST24H*60)+LST24M
--################################################################################################################################################
--#############  END TIME CALCS ###########################################################################################################
--################################################################################################################################################
--################################################################################################################################################
--#############  SUN CACULATIONS AND DISPLAY ###########################################################################################################
--################################################################################################################################################
--################################################################################################################################################
--################################################################################################################################################
--    Sun formulas
--
--    L1    - Mean longitude
--    M1    - Mean anomaly
--    C1    - Equation of centre
--    V1    - True anomaly
--    Ec1    - Eccentricity 
--    R1    - Sun distance
--    Th1    - Theta (true longitude)
--    Om1    - Long Asc Node (Omega)
--    Lam1- Lambda (apparent longitude)
--    Obl    - Obliquity of ecliptic
--    Ra1    - Right Ascension
--    Dec1- Declination
t=T
L1 = range(280.466 + 36000.8 * t)
M1 = range(357.529+35999*t - 0.0001536* t*t + t*t*t/24490000)
sinm1=math.sin(math.rad(M1))
C1 = (1.915 - 0.004817* t - 0.000014* t * t)* sinm1;     
C1 = C1 + (0.01999 - 0.000101 * t)* sinm1;
C1 = C1 + 0.00029 * sinm1;
V1 = M1 + C1;
cosv1=math.cos(math.rad(V1))
Ec1 = 0.01671 - 0.00004204 * t - 0.0000001236 * t*t;
R1 = 0.99972 / (1 + Ec1 * cosv1);--correct
Th1 = L1 + C1
Om1 = range(125.04 - 1934.1 * t)
om1sin=math.sin(math.rad(Om1))
Lam1 = Th1 - 0.00569 - 0.00478 * math.deg(om1sin);
Obl = (84381.448 - 46.815 * t)/3600; --correct
th1sin=math.sin(math.rad(Th1))
th1cos=math.cos(math.rad(Th1))
th1tan=math.tan(math.rad(Th1))
oblsin=math.sin(math.rad(Obl))
oblcos=math.cos(math.rad(Obl))
obltan=math.tan(math.rad(Obl))
zsin=math.sin(math.rad(0))
zcos=math.cos(math.rad(0))
ztan=math.tan(math.rad(0))
Ra1 = datan2((th1sin * oblcos - ztan* zsin),th1cos)--close ish
Dec1 = math.asin(zsin* oblcos + zcos*oblsin*th1sin)--very close
--SUN CALCULATIONS---------------------------------------------------------------
-------------------------------------------------------
delta=math.deg(Dec1)
------------------------------------------------------
sdec=delta
--calculate hangle in relation to altitude in relation to time
althrtab={}
shartab={}
total=1440
for i=1,total do
sha=180+(i*(360/total))
cossha=math.cos(math.rad(sha))
cossundec=math.cos(math.rad(sdec))
coslat=math.cos(math.rad(latitude))
cosmath=cossha*cossundec*coslat
sinsundec=math.sin(math.rad(sdec))
sinlat=math.sin(math.rad(latitude))
sinmath=sinsundec*sinlat
sinelevation=cosmath+sinmath
elevation=math.deg(math.asin(sinelevation))
curaltlong=elevation
curalt=round(curaltlong,2)
althrtab[i]=curalt
shartab[i]=sha-360
end
--#############################################
--calculate sunrise and sunset
for i=1,(total-1) do
if althrtab[i]<0 and althrtab[i+1]>0 then
rise=i
end
if althrtab[i]>0 and althrtab[i+1]<0 then
set=i
end
end
rise=rise/60
rises=string.split(rise,"%p")
sriseh=rises[1]
riseml=string.len(rises[2])
risem=(rises[2]/(10^riseml))*60
risems=string.split(risem,"%p")
srisem=risems[1]
set=set/60
sets=string.split(set,"%p")
sseth=sets[1]
setml=string.len(sets[2])
setm=(sets[2]/(10^setml))*60
setms=string.split(setm,"%p")
ssetm=setms[1]
--#############################################
--calculate azimuth for all above points
if hemisphere==1 then
azitab={}
for i=1,total do
azmath1=(math.cos(math.rad(shartab[i]))*cossundec*sinlat)-(sinsundec*coslat)
azmath2=math.cos(math.rad(althrtab[i]))
cosaz=azmath1/azmath2
azi1=math.deg(math.acos(cosaz))
aziplot=azi1
if shartab[i]<0 then
azitab[i]=(aziplot-180)*-1
else
azitab[i]=aziplot+180
end
end
end--if hemishpere
if hemisphere==2 then
azitab={}
for i=1,total do
azmath1=(math.cos(math.rad(shartab[i]))*cossundec*sinlat)-(sinsundec*coslat)
azmath2=math.cos(math.rad(althrtab[i]))
cosaz=azmath1/azmath2
azi1=math.deg(math.acos(cosaz))
aziplot=azi1
if shartab[i]<0 then
azitab[i]=(aziplot-360)*-1
else
azitab[i]=aziplot--+180
end
end
end--if hemishpere
------------------------------------------------------------------------------
--diplay sun plot
for i = 1,total do
circrad=0.25
circx=across-180+azitab[i]
circy=down-althrtab[i]
cairo_arc(cr,circx,circy,circrad,0,2*math.pi)
cairo_close_path(cr)
cairo_set_source_rgba(cr,0.4,0.4,0.4,1)
cairo_fill (cr)
end
--plot current sun position
circrad=7
circx=across-180+azitab[stime]
circy=down-althrtab[stime]
cairo_arc(cr,circx,circy,circrad,0,2*math.pi)
cairo_close_path(cr)
cairo_set_source_rgba(cr,1,1,0,1)
cairo_fill (cr)
-------------------------------
--curerent sun alt and azi
sunalt=althrtab[stime]
sunazi=azitab[stime]
--------------------------------------------
--############################################################################
--draw vertical N-S line
cairo_set_line_width (cr, 1)
cairo_set_source_rgba(cr,0.5,0.5,0.5,1)
cairo_move_to (cr, across, down+100)
cairo_line_to (cr, across, down-100)
cairo_stroke (cr)
--draw horizon
cairo_move_to (cr, across-180, down)
cairo_line_to (cr, across+180, down)
cairo_stroke (cr)
if hemisphere==1 then
cairo_move_to (cr, across-4, down-102)
cairo_show_text (cr, "S")
cairo_move_to (cr, across-4, down+109)
cairo_show_text (cr, "N")
else
cairo_move_to (cr, across-4, down-102)
cairo_show_text (cr, "N")
cairo_move_to (cr, across-4, down+109)
cairo_show_text (cr, "S")
cairo_stroke (cr)
end
--################################################################################################################################################
--################################################################################################################################################
--################################################################################################################################################
--################################################################################################################################################
--################################################################################################################################################
--#############  MOON CACULATIONS AND DISPLAY ###########################################################################################################
--################################################################################################################################################
--################################################################################################################################################
--################################################################################################################################################
--calculate moon data----------------------------------------------------------------
--moon stuff
F = range(93.2721 + 483202 * t - 0.003403 * t* t - t * t * t/3526000);
L2 = range(218.316 + 481268 * t);
Om2 = range(125.045 - 1934.14 * t + 0.002071 * t * t + t * t * t/450000);
M2 = range(134.963 + 477199 * t + 0.008997 * t * t + t * t * t/69700);
cosm2=math.cos(math.rad(M2))
D = range(297.85 + 445267 * t - 0.00163 * t * t + t * t * t/545900);
D2 = 2*D;
cosd2m2=math.cos(math.rad(D2-M2))
cosd2=math.cos(math.rad(D2))
R2 = 1 + (-20954 * cosm2 - 3699 * cosd2m2 - 2956 * cosd2 / 385000);
R3 = (R2 / R1) / 379.168831168831;
sinf=math.sin(math.rad(F))
sinm2f=math.sin(math.rad(M2-F))
sind2f=math.sin(math.rad(D2-F))
Bm = 5.128 * sinf + 0.2806 * sinm2f;
Bm = Bm + 0.2777 * sinm2f + 0.1732 * sind2f;
sinm2=math.sin(math.rad(M2))
sind2m2=math.sin(math.rad(D2-M2))
sind2=math.sin(math.rad(D2))
Lm = 6.289 * sinm2 + 1.274 * sind2m2 + 0.6583 * sind2; 
sin2m2=math.sin(math.rad(2*M2))
sin2f=math.sin(math.rad(2*F))
Lm = Lm + 0.2136 * sin2m2 - 0.1851 * sinm1 - 0.1143 * sin2f;
sind22m2=math.sin(math.rad(D2-(2*M2))) 
Lm = Lm +0.0588 * sind22m2
sind2m1m2=math.sin(math.rad(D2-M1-M2))
sind2m22=math.sin(math.rad(D2+M2))
Lm = Lm + 0.0572* sind2m1m2 + 0.0533* sind2m22;
Lm = Lm + L2;
tanbm=math.tan(math.rad(Bm))
sinbm=math.sin(math.rad(Bm))
cosbm=math.cos(math.rad(Bm))
sinlm=math.sin(math.rad(Lm))
coslm=math.cos(math.rad(Lm))
Ra2 = math.atan((sinlm * oblcos - tanbm* oblsin));
Dec2 = math.asin(sinbm* oblcos + cosbm*oblsin*sinlm);
sinlam1lm=math.sin(math.rad(Lam1-Lm))
HLm = range(Lam1 + 180 + (180/math.pi) * R3 * cosbm * sinlam1lm);
HBm = R3 * Bm;
--------------------------------------------------------------------
--obliquity of ecliptic:
eps = 23.0 + 26.0/60.0 + 21.448/3600.0 - (46.8150*T+ 0.00059*T*T- 0.001813*T*T*T)/3600;
X = cos(Bm)*cos(Lm)
Y = cos(eps)*cos(Bm)*sin(Lm) - sin(eps)*sin(Bm)
Z = sin(eps)*cos(Bm)*sin(Lm) - cos(eps)*sin(Bm)
R = math.sqrt(1.0-Z*Z);
delta = (180/math.pi)*math.atan(Z/R); -- in degrees-- declination
RA = (24/math.pi)*math.atan(Y/(X+R)); -- in hours
-------------------------------------------------------
delta=math.deg(Dec2)
------------------------------------------------------
sdec=delta
althrtab={}
shartab={}
total=1440
cossundec=math.cos(math.rad(sdec))
coslat=math.cos(math.rad(latitude))
sinlat=math.sin(math.rad(latitude))
sinsundec=math.sin(math.rad(sdec))
sinmath=sinsundec*sinlat
for i=0,total do
sha=180+(i*(360/total))
cossha=math.cos(math.rad(sha))
cosmath=cossha*cossundec*coslat
sinelevation=cosmath+sinmath
elevation=math.deg(math.asin(sinelevation))
curaltlong=elevation
curalt=round(curaltlong,2)
althrtab[i]=curalt
shartab[i]=sha-360
end
--#############################################
--calculate moonrise and moonset
for i=1,(total-1) do
if althrtab[i]<0 and althrtab[i+1]>0 then
rise=i
end
if althrtab[i]>0 and althrtab[i+1]<0 then
set=i
end
end
rise=rise/60
rises=string.split(rise,"%p")
mriseh=rises[1]
riseml=string.len(rises[2])
risem=(rises[2]/(10^riseml))*60
risems=string.split(risem,"%p")
mrisem=risems[1]
set=set/60
sets=string.split(set,"%p")
mseth=sets[1]
setml=string.len(sets[2])
setm=(sets[2]/(10^setml))*60
setms=string.split(setm,"%p")
msetm=setms[1]
--#############################################
--calculate azimuth for all above points
if hemisphere==1 then
azitab={}
for i=1,total do
azmath1=(math.cos(math.rad(shartab[i]))*cossundec*sinlat)-(sinsundec*coslat)
azmath2=math.cos(math.rad(althrtab[i]))
cosaz=azmath1/azmath2
azi1=math.deg(math.acos(cosaz))
aziplot=azi1
if shartab[i]<0 then
azitab[i]=(aziplot-180)*-1
else
azitab[i]=aziplot+180
end
end
end--if hemishpere
if hemisphere==2 then
azitab={}
for i=1,total do
azmath1=(math.cos(math.rad(shartab[i]))*cossundec*sinlat)-(sinsundec*coslat)
azmath2=math.cos(math.rad(althrtab[i]))
cosaz=azmath1/azmath2
azi1=math.deg(math.acos(cosaz))
aziplot=azi1
if shartab[i]<0 then
azitab[i]=(aziplot-360)*-1
else
azitab[i]=aziplot
end
end
end--if hemishpere
------------------------------------------------------------------------------
--diplay moon plot
for i = 1,total do
circrad=0.25
circx=across-180+azitab[i]
circy=down-althrtab[i]
cairo_arc(cr,circx,circy,circrad,0,2*math.pi)
cairo_close_path(cr)
cairo_set_source_rgba(cr,0.7,0.7,0.7,1)
cairo_fill (cr)
end
--plot current moon position
madj=tostring(rangei(sgtime+360))
mtime=madj
circrad=5
circx=across-180+(azitab[tonumber(mtime)])
circy=down-(althrtab[tonumber(mtime)])
cairo_arc(cr,circx,circy,circrad,0,2*math.pi)
cairo_close_path(cr)
cairo_set_source_rgba(cr,1,1,1,1)
cairo_fill (cr)
-------------------------------
--curerent moon alt and azi
moonalt=althrtab[tonumber(mtime)]
moonazi=azitab[tonumber(mtime)]
---------------------------------------------
--################################################################################################################################################
--################################################################################################################################################
--#############  TEXT DISPLAYS ###########################################################################################################
--################################################################################################################################################
--################################################################################################################################################
--################################################################################################################################################
--draws text label
font="DejaVuSansMono:bold"
fontsize=9
cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, fontsize);
cairo_set_source_rgba (cr, 1, 0.6, 0.1, 1);
--top left - sun moon alt and azi
tlx=20
tly=60
adj=10
cairo_move_to (cr, tlx, tly)
cairo_show_text (cr, "Positions")
gap=10
add=fontsize+((fontsize/100)*adj)+gap
cairo_move_to (cr, tlx, tly+add)
cairo_show_text (cr, "Soleil")
add=fontsize+((fontsize/100)*adj)+add
cairo_move_to (cr, tlx, tly+add)
cairo_show_text (cr, "Azimut " .. round(sunazi,2) .. "°")
add=fontsize+((fontsize/100)*adj)+add
cairo_move_to (cr, tlx, tly+add)
cairo_show_text (cr, "Altitude " .. sunalt .. "°")
gap=10
add=fontsize+((fontsize/100)*adj)+add+gap
cairo_move_to (cr, tlx, tly+add)
cairo_show_text (cr, "Lune")
add=fontsize+((fontsize/100)*adj)+add
cairo_move_to (cr, tlx, tly+add)
cairo_show_text (cr, "Azimut " .. round(moonazi,2) .. "°")
add=fontsize+((fontsize/100)*adj)+add
cairo_move_to (cr, tlx, tly+add)
cairo_show_text (cr, "Altitude " .. moonalt .. "°")
tlx=240
tly=60
adj=10
cairo_move_to (cr, tlx, tly)
cairo_show_text (cr, "Heure")
gap=10
add=fontsize+((fontsize/100)*adj)+gap
cairo_move_to (cr, tlx, tly+add)
cairo_show_text (cr, "Heure  Locale: " .. H .. ":" .. Min)
add=fontsize+((fontsize/100)*adj)+add
cairo_move_to (cr, tlx, tly+add)
cairo_show_text (cr, "Heure Sidérale: " .. GMST24H .. ":" .. GMST24M )
add=fontsize+((fontsize/100)*adj)+add
cairo_move_to (cr, tlx, tly+add)
cairo_show_text (cr, "Heure Solaire : " .. LST24H .. ":" .. LST24M)
cairo_stroke (cr)
--#######################################################################
--###########################################################################################
--###########################################################################################
--###########################################################################################
--###########################################################################################
end-- end if updates =
end--end main function
 

conkyrc1 ( pour le lua pour l'image de la terre)

conky.config = {
	background = true,
	use_xft = true,
	font = 'Liberation Sans:size=7',
	xftalpha = 1,
	update_interval = 1.0,
	total_run_times = 0,
	own_window = true,
	own_window_transparent = true,
--own_window_color 000000
own_window_argb_visual = true,
--own_window_argb_value = 250,
	own_window_type = 'normal',
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
	double_buffer = true,
	minimum_width = 480, minimum_height = 470,
        maximum_width = 480,
	text_buffer_size = 2048,
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,
	default_color = 'white',
	default_outline_color = 'white',
	alignment = 'top_left',
	gap_x = 320,
	gap_y = 340,
	no_buffers = true,
	uppercase = false,
	cpu_avg_samples = 2,
	override_utf8_locale = true,
imlib_cache_flush_interval = 60,
	imlib_cache_size = 10000,


-- Taille des pointillés${execi 35000 bash $HOME/2_Wunderground_API/2_wun}
	stippled_borders = 5,

-- Couleurs
	default_color = '#ffffff',--ffd579
	default_shade_color = '#333333',
	default_outline_color = 'black',

 

lua_load = '~/.conky/lua/image.lua',
 
};

conky.text = [[

${lua fDrawImage ~/.conky/soleil/Terre.png 169 169 62 62}
]];

la terre est une image trouve sur le net .


conky radar

conkyrc

conky.config = {
	background = true,
	use_xft = true,
	font = 'Fira Mono:bold:size=8',
	xftalpha = 1,
	update_interval = 1.0,
	total_run_times = 0,
	own_window = true,
	own_window_transparent = true,
--own_window_color 000000
own_window_argb_visual = true,
--own_window_argb_value = 250,
	own_window_type = 'normal',
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
	double_buffer = true,
	minimum_width = 390, minimum_height = 200,
        maximum_width = 390,
	text_buffer_size = 2048,
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,
	default_color = 'white',
	default_outline_color = 'white',
	alignment = 'top_left',
	gap_x = 160,
	gap_y = 650,
	no_buffers = true,
	uppercase = false,
	cpu_avg_samples = 2,
	override_utf8_locale = true,
imlib_cache_flush_interval = 60,
	imlib_cache_size = 10000,


-- Taille des pointillés
	stippled_borders = 5,

-- Couleurs
	default_color = '#ffffff',--ffd579
	default_shade_color = '#333333',
	default_outline_color = 'black',

 lua_load = '~/.conky/lua/image.lua',

};


conky.text = [[
${texeci 300 ~/.conky/sat/sat.sh}
${lua fDrawImage ~/.conky/sat/satir-1.png 5 10 190 190}
${texeci 300 ~/.conky/satimage/satimage.sh}
${lua fDrawImage ~/.conky/satimage/satimage.png 205 10 190 236}

]];

sat.sh

#!/bin/bash

file_exists() {
    if [ -e "$1" ]; then
        return 0
    else
        return 1
    fi
}

PREFIX=${HOME}/.conky/sat/
RSAT=${PREFIX}radar-sat
#RSAT_zoom=${PREFIX}radar-satzoom
OUTPUT=${PREFIX}satir-1.png
tailleRSAT=80
#tailleRSAT_zoom=80
tailledecoupe_ir2=692x692
#tailledecoupe_zoom=150x150
################################
################################
#Annotation pour vérifier si l'image est actualisée ##HelveticaLTStd-BlkCond
jour=$(date +%d.%m.%y); heuremodif=$(date +%H); minmodif=$(date +%M)
#fonte=Open-Sans-Bold
libelle=""
TXT=${PREFIX}updated.png
#################################################################

adrS="https://neige.meteociel.fr/satellite/latest-ir-color.gif"

wget -qO "${RSAT}" "${adrS}"

convert ${RSAT} -filter Lanczos -crop $tailledecoupe_ir2+31+57\! ${RSAT}.png
#convert ${RSAT} -filter Lanczos -crop $tailledecoupe_zoom+389+335\! ${RSAT_zoom}.png
#convert ${RSAT_zoom}.png -resize ${tailleRSAT_zoom}% ${RSAT_zoom}
#########################################################
convert ${RSAT}.png -resize ${tailleRSAT}% ${RSAT}.png
convert  ${RSAT}.png \
\( +clone  -alpha extract \
       -draw 'fill black polygon 0,0 0,5 5,0 fill white circle 5,5 5,0' \
        \( +clone -flip \) -compose Multiply -composite \
        \( +clone -flop \) -compose Multiply -composite \
     \) -alpha off -compose CopyOpacity -composite ${RSAT}.png

convert -background transparent -fill white -font Ubuntu -pointsize 17 -gravity center label:"${libelle} ${jour} @ ${heuremodif} : ${minmodif}" -trim \
\( +clone -background skyblue  -shadow 100x1 -channel A -level 0,6% +channel \) +swap +repage -gravity center -composite ${TXT}



convert $RSAT.png  -background  black \( +clone -shadow 70x4+4+4 \) +swap -background none -flatten ${OUTPUT}

composite -geometry +35+10 ${TXT} ${OUTPUT} ${OUTPUT}
#composite -geometry +155+10 ${RSAT_zoom} ${OUTPUT} ${OUTPUT}
if file_exists "${HOME}"/.conky/sat/radar-sat-*; then
    rm "${HOME}"/.conky/sat/radar-sat-* "${RSAT}" "${RSAT}.png"
else
    rm "${RSAT}" "${RSAT}.png"
fi
 
exit

satimage.sh

#!/bin/bash

file_exists() {
    if [ -e "$1" ]; then
        return 0
    else
        return 1
    fi
}

PREFIX=${HOME}/.conky/satimage/
RSAT=${PREFIX}radar-sat
#RSAT_zoom=${PREFIX}radar-satzoom
OUTPUT=${PREFIX}satimage.png
tailleRSAT=80
#tailleRSAT_zoom=80
tailledecoupe_ir2=692x692
#tailledecoupe_zoom=150x150
################################
################################
#Annotation pour vérifier si l'image est actualisée ##HelveticaLTStd-BlkCond
jour=$(date +%d.%m.%y); heuremodif=$(date +%H); minmodif=$(date +%M)
#fonte=Open-Sans-Bold
libelle=""
TXT=${PREFIX}updated.png
#################################################################

adrS="https://www.sat24.com/image.ashx?country=eu&type=zoom&format=640x480001001&rnd=610703"

wget -qO "${RSAT}" "${adrS}"

convert ${RSAT} -filter Lanczos -crop $tailledecoupe_ir2+31+57\! ${RSAT}.png
#convert ${RSAT} -filter Lanczos -crop $tailledecoupe_zoom+389+335\! ${RSAT_zoom}.png
#convert ${RSAT_zoom}.png -resize ${tailleRSAT_zoom}% ${RSAT_zoom}
#########################################################
convert ${RSAT}.png -resize ${tailleRSAT}% ${RSAT}.png
convert  ${RSAT}.png \
\( +clone  -alpha extract \
       -draw 'fill black polygon 0,0 0,5 5,0 fill white circle 5,5 5,0' \
        \( +clone -flip \) -compose Multiply -composite \
        \( +clone -flop \) -compose Multiply -composite \
     \) -alpha off -compose CopyOpacity -composite ${RSAT}.png

convert -background transparent -fill blue -font Ubuntu -pointsize 17 -gravity center label:"${libelle} ${jour} @ ${heuremodif} : ${minmodif}" -trim \
\( +clone -background skyblue  -shadow 100x1 -channel A -level 0,6% +channel \) +swap +repage -gravity center -composite ${TXT}



convert $RSAT.png  -background  black \( +clone -shadow 70x4+4+4 \) +swap -background none -flatten ${OUTPUT}

composite -geometry +35+10 ${TXT} ${OUTPUT} ${OUTPUT}

if file_exists "${HOME}"/.conky/sat/radar-sat-*; then
    rm "${HOME}"/.conky/sat/radar-sat-* "${RSAT}" "${RSAT}.png"
else
    rm "${RSAT}" "${RSAT}.png"
fi
 
exit

le image.lua pour ce que ça intéresse

image.lua

--créer par  Didier-T




require 'cairo'
home = os.getenv ('HOME')

--Fonction d'affichage
function conky_fDrawImage(path,x,y,w,h,arc)

	path = string.gsub(path, "~", home)
	path = string.gsub(path, "$HOME", home)

	local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
	
	local function fDrawImage(path,x,y,w,h,arc)
		x=x+(w/2)
		y=y+(h/2)
		local img =  cairo_image_surface_create_from_png(path)
		local w_img, h_img = cairo_image_surface_get_width (img), cairo_image_surface_get_height (img)

		local cr = cairo_create (cs)
		cairo_translate (cr, x, y)

		if arc then
			cairo_rotate (cr, arc)
		end

		cairo_scale (cr, w/w_img, h/h_img)
		cairo_set_source_surface (cr, img, -w_img/2, -h_img/2)
		cairo_paint (cr)
		cairo_destroy(cr)
		cairo_surface_destroy (img)
	end
	fDrawImage(path,x,y,w,h,arc)
	cairo_surface_destroy(cs)
	return ""
end

Voila (désolé pour le pavet )

Dernière modification par loutch (Le 27/04/2019, à 08:56)

Hors ligne

#312 Le 27/04/2019, à 09:54

nam1962

Re : Nos bureaux Xfce (Xubuntu, Voyager, Ubuntu Studio...)

Waah merci ! smile


[ Modéré ]

Hors ligne

#313 Le 27/04/2019, à 13:52

melixgaro

Re : Nos bureaux Xfce (Xubuntu, Voyager, Ubuntu Studio...)

ah, super ! merci !


Linux depuis ~2007. Xubuntu seulement.

Hors ligne

#314 Le 27/04/2019, à 14:56

lepetit

Re : Nos bureaux Xfce (Xubuntu, Voyager, Ubuntu Studio...)

zephirin a écrit :

Et le lien pour le fond d'écran ?

+1 big_smile


-pc principal: amd ryzen 2600, 16 go de ram, ssd nvme samsung @ linux mint 19
-mini pc: amd 5350 mini itx fanless, 8go de ram, ssd
-mini pc 2: intel core 2 duo t7200, 1.5 go de ram, gforce 710 (pilote libre) @ linux mint xfce, kernel xanmod
-netbook samsung nc20, via nano 1.3ghz+, 2go de ram, via vx800 @ xubuntu 18.10

Hors ligne

#315 Le 27/04/2019, à 17:18

zephirin

Re : Nos bureaux Xfce (Xubuntu, Voyager, Ubuntu Studio...)


AIO tactile 27" Samsung  i5 8GB DDR3 W11 - tour Antec Asus P5GCMX1333 W11
iMac 27" fin 2009 i5 750 16GBssd2TB cg512 HighSierra - MacBookAir 13" 2017 i5 8GB ssd120 Monterey - MacBookPro mi 2012 8GB DDR3 Catalina

Hors ligne

#316 Le 27/04/2019, à 18:43

lepetit

Re : Nos bureaux Xfce (Xubuntu, Voyager, Ubuntu Studio...)

merci


-pc principal: amd ryzen 2600, 16 go de ram, ssd nvme samsung @ linux mint 19
-mini pc: amd 5350 mini itx fanless, 8go de ram, ssd
-mini pc 2: intel core 2 duo t7200, 1.5 go de ram, gforce 710 (pilote libre) @ linux mint xfce, kernel xanmod
-netbook samsung nc20, via nano 1.3ghz+, 2go de ram, via vx800 @ xubuntu 18.10

Hors ligne

#317 Le 11/05/2019, à 07:53

rogn...

Re : Nos bureaux Xfce (Xubuntu, Voyager, Ubuntu Studio...)

Avec dock
1557557971.png

Avec le basculeur de bureaux et de fenêtres
1557558180.png

Avec Menu Whisker
1557558373.png

#318 Le 11/05/2019, à 15:24

nam1962

Re : Nos bureaux Xfce (Xubuntu, Voyager, Ubuntu Studio...)

Très propre ! Tu utilises Cairo Dock ?


[ Modéré ]

Hors ligne

#319 Le 11/05/2019, à 19:36

rogn...

Re : Nos bureaux Xfce (Xubuntu, Voyager, Ubuntu Studio...)

Non, Docky.
Cairo dock fait trop usine à gaz pour ce que je voulais avoir.

#320 Le 11/05/2019, à 19:54

nam1962

Re : Nos bureaux Xfce (Xubuntu, Voyager, Ubuntu Studio...)

...idem pour moi wink


[ Modéré ]

Hors ligne

#321 Le 26/05/2019, à 18:18

Gog

Re : Nos bureaux Xfce (Xubuntu, Voyager, Ubuntu Studio...)

J'aime beaucoup


T3600 e5-1650 8Go DDR3 r7 M465X/HD8830M SSD240go
xubuntu 20.04.6

Hors ligne

#322 Le 29/05/2019, à 14:21

Pascaltech

Re : Nos bureaux Xfce (Xubuntu, Voyager, Ubuntu Studio...)

Bonjour,

Ca va, on tolère parce que c'est la bonne couleur de sabrolaser smile. Bravo, c'est magnifique !

Dernière modification par Pascaltech (Le 29/05/2019, à 14:21)


Emachine el1200, Xubuntu 20.04 LTS
Traductions guides serveur & grub et liens utiles Classement CG
inxi -F sudo lshw dpkg -l

Hors ligne

#323 Le 30/05/2019, à 18:50

loutch

Re : Nos bureaux Xfce (Xubuntu, Voyager, Ubuntu Studio...)

Dif tor heh smusma

Longue vie et prospérité

1559237981.png


@+

Dernière modification par loutch (Le 30/05/2019, à 19:11)

Hors ligne

#324 Le 30/05/2019, à 21:06

Pimprelune

Re : Nos bureaux Xfce (Xubuntu, Voyager, Ubuntu Studio...)

Bonsoir le Forum, hello les Ixefcéites !


J'aime beaucoup l'appli météo, loutch... et les icônes !!! Ce sont lesquelles ?



Pimprelune  1557069767.jpg


Ne vous trompez pas entre ma personnalité et mon attitude. Ma personnalité est "qui je suis", mon attitude dépend de "qui vous êtes"...
YES
Clics ici et
Aïe !

Hors ligne

#325 Le 31/05/2019, à 06:43

rogn...

Re : Nos bureaux Xfce (Xubuntu, Voyager, Ubuntu Studio...)

@loutch : classe, ce baromètre. cool