Conky

Bureaux,conky et autres personnalisations esthétiques.
Avatar du membre
loutch
Messages : 517
Enregistré le : lun. 13 juil. 2015 17:32
Localisation : Sarreguemines

Re: Conky

Message par loutch »

Dernier message de la page précédente :

hello
thekod a écrit :@loutch : est-ce qu'il existe un package ou une archive avec un exécutable qui permettrait d'installer simplement ce conky sur le bureau de Maté ?

EDIT : je parle du conky "météo" auquel tu fais référence deux posts au-dessus...
Oui Didier-t l’a mis en .deb (pas essayé vu que Mageia est en rpm ) ici:

https://forum.ubuntu-fr.org/viewtopic.p ... 229761&p=1

Une fois installé tu prends mes scripts que tu mets à la place de ceux du pack en faisant attention au chemin d'appel des scripts vu que le .deb en met certains dans le .bin

@+
HP Pavilion g 7 1357 sf avec ssd Tessa cinnamon Mageia 7rc mate
Asus ROG avec xubuntu 18.04 et xubuntu 19.04

Image

Tangos

Re: Conky

Message par Tangos »

Joli travail Image

Avatar du membre
mpat
Messages : 7845
Enregistré le : mar. 25 août 2015 21:12
Localisation : Belgique

Re: Conky

Message par mpat »

je ne suis pas amateur de conky sur mon bureau, ça n'empêche pas de reconnaître que c'est du très beau boulot.
Clevo P775DM3-G
I7 -7700k (quad-core (8 threads) 4.2-4.5 ghz
ram 64go DDR4
Nvidia gtx 1080 8go GDDR5X
2 x ssd 500go m.2 Samsung + 2 to ssd Samsung
Lmint 18.3 Cinnamon 64bit, kernel 4.13.0-45

Avatar du membre
thekod
Messages : 80
Enregistré le : lun. 16 nov. 2015 13:23

Re: Conky

Message par thekod »

loutch a écrit :hello
thekod a écrit :@loutch : est-ce qu'il existe un package ou une archive avec un exécutable qui permettrait d'installer simplement ce conky sur le bureau de Maté ?

EDIT : je parle du conky "météo" auquel tu fais référence deux posts au-dessus...
Oui Didier-t l’a mis en .deb (pas essayé vu que Mageia est en rpm ) ici:

https://forum.ubuntu-fr.org/viewtopic.p ... 229761&p=1

Une fois installé tu prends mes scripts que tu mets à la place de ceux du pack en faisant attention au chemin d'appel des scripts vu que le .deb en met certains dans le .bin

@+
Heu....
J'abuse peut-être mais : n'y a-t-il pas moyen de créer un ".deb" qui contienne déjà tout ça ?
(je pourrais éventuellement le faire, mais je ne sais pas [encore ?] créer de ".deb")
theKOD

Linux Mint 17.3 - MATE
INTEL NUC BOX 5 i3 RYH
Intel Core i3 5010U / 2.1 GHz - Intel HD Graphics 5500
Kingston SSDNow M.2 SATA 120 Go - WD Black Mobile 750 Go
2 x 4 Go (Crucial DDR3L 1600 MHz CL11)


Linux Mint 18 - MATE - 32 bits
LENOVO THINKSTATION E31
Intel Xeon E3-1220 V2 @ 3.10GHz - 64 bits
1 x 8 Go

Avatar du membre
loutch
Messages : 517
Enregistré le : lun. 13 juil. 2015 17:32
Localisation : Sarreguemines

Re: Conky

Message par loutch »

Hello

Peut-être pas un point deb mais une archive et une liste des programmes à installer. Comme cela il y aura juste à décompresser l'archive dans

/home/user/.comky

@+
HP Pavilion g 7 1357 sf avec ssd Tessa cinnamon Mageia 7rc mate
Asus ROG avec xubuntu 18.04 et xubuntu 19.04

Image

Avatar du membre
loutch
Messages : 517
Enregistré le : lun. 13 juil. 2015 17:32
Localisation : Sarreguemines

Re: Conky

Message par loutch »

Hello

Conky accuweather pour les 16 prochaines heures. Les informations sont à prendre sur la page english, j'ai traduit en français ce que j'ai pu.

Pour les traductions qui manquent, il suffit de mettre à la suite dans le fichier 1c dans la partie traduction. Ce conky aura besoin d'être mis à jour lors des changement d'heure (été-hiver) vu qu tztime ne prend pas tout les formats, à moins que l'un d'entre vous puisse faire un script ou autre pour avoir les heures au format 24h.

le pack est à prendre ici et à extraire dans le home.

http://bit.ly/1c_12-2-14

mon conkyrc modifier :

Code : Tout sélectionner

 
background yes
use_xft yes
xftfont URW Chancery L:style=Bold:size=10
xftalpha 1
update_interval 6.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_argb_visual yes
own_window_type normal
own_window_hints undecorated,below,skip_taskbar,skip_pager
double_buffer yes
minimum_size 1050 300
maximum_width 1050
text_buffer_size 2048
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color ffffff
color0 A9A9A9 #DarkGray
color1 778899 #LightSlateGray
color2 F5F5DC #Beige
color3 87CEFA #LightSkyBlue
color4 48D1CC #MediumTurquoise
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 B0E0E6 #PowderBlue
color8 FFD700 #Gold
color9 ff0000 #LightSalmon
default_outline_color black
alignment tl
gap_x 260
gap_y 120
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
# Fonctionne uniquement avec les polices Fixes
#use_spacer yes
imlib_cache_size 0
text_buffer_size 4096

lua_load ~/.conky/lua/image.lua

# stuff after 'TEXT' will be formatted on screen
TEXT
${texeci 600 bash $HOME/1c_accuweather_images_hourly/1c}

Heures${goto 95} ${tztime Europe/Paris %H} h${goto 160} ${tztime GMT-2 %H} h${goto 220} ${tztime GMT-3 %H} h${goto 280} ${tztime GMT-4 %H} h${goto 340} ${tztime GMT-5 %H} h${goto 400} ${tztime GMT-6 %H} h${goto 460} ${tztime GMT-7 %H} h${goto 520} ${tztime GMT-8 %H} h${goto 580} ${tztime GMT-9 %H}${goto 640} ${tztime GMT-10 %H}${goto 700} ${tztime GMT-11 %H} h${goto 760} ${tztime GMT-12 %H} h${goto 820} ${tztime GMT-13 %H} h${goto 880} ${tztime GMT-14 %H} h${goto 940} ${tztime GMT-15 %H} h${goto 1000} ${tztime GMT-16 %H} h

Prévisions${color}
${goto 100}${execpi 600 sed -n '21p' $HOME/1c_accuweather_images_hourly/hourly_raw1-fr}${goto 160}${execpi 600 sed -n '25p' $HOME/1c_accuweather_images_hourly/hourly_raw1-fr}${goto 220}${execpi 600 sed -n '29p' $HOME/1c_accuweather_images_hourly/hourly_raw1-fr}${goto 280}${execpi 600 sed -n '33p' $HOME/1c_accuweather_images_hourly/hourly_raw1-fr}${goto 340}${execpi 600 sed -n '37p' $HOME/1c_accuweather_images_hourly/hourly_raw1-fr}${goto 400}${execpi 600 sed -n '41p' $HOME/1c_accuweather_images_hourly/hourly_raw1-fr}${goto 460}${execpi 600 sed -n '45p' $HOME/1c_accuweather_images_hourly/hourly_raw1-fr}${goto 520}${execpi 600 sed -n '49p' $HOME/1c_accuweather_images_hourly/hourly_raw1-fr}${goto 580}${execpi 600 sed -n '21p' $HOME/1c_accuweather_images_hourly/hourly_raw2-fr}${goto 640}${execpi 600 sed -n '25p' $HOME/1c_accuweather_images_hourly/hourly_raw2-fr}${goto 700}${execpi 600 sed -n '29p' $HOME/1c_accuweather_images_hourly/hourly_raw2-fr}${goto 760}${execpi 600 sed -n '33p' $HOME/1c_accuweather_images_hourly/hourly_raw2-fr}${goto 820}${execpi 600 sed -n '37p' $HOME/1c_accuweather_images_hourly/hourly_raw2-fr}${goto 880}${execpi 600 sed -n '41p' $HOME/1c_accuweather_images_hourly/hourly_raw2-fr}${goto 940}${execpi 600 sed -n '45p' $HOME/1c_accuweather_images_hourly/hourly_raw2-fr}${goto 1000}${execpi 600 sed -n '49p' $HOME/1c_accuweather_images_hourly/hourly_raw2-fr}
${goto 100}${execpi 600 sed -n '22p' $HOME/1c_accuweather_images_hourly/hourly_raw1-fr}${goto 160}${execpi 600 sed -n '26p' $HOME/1c_accuweather_images_hourly/hourly_raw1-fr}${goto 220}${execpi 600 sed -n '30p' $HOME/1c_accuweather_images_hourly/hourly_raw1}${goto 280}${execpi 600 sed -n '34p' $HOME/1c_accuweather_images_hourly/hourly_raw1-fr}${goto 340}${execpi 600 sed -n '38p' $HOME/1c_accuweather_images_hourly/hourly_raw1-fr}${goto 400}${execpi 600 sed -n '42p' $HOME/1c_accuweather_images_hourly/hourly_raw1-fr}${goto 460}${execpi 600 sed -n '46p' $HOME/1c_accuweather_images_hourly/hourly_raw1-fr}${goto 520}${execpi 600 sed -n '50p' $HOME/1c_accuweather_images_hourly/hourly_raw1-fr}${goto 580}${execpi 600 sed -n '22p' $HOME/1c_accuweather_images_hourly/hourly_raw2-fr}${goto 640}${execpi 600 sed -n '26p' $HOME/1c_accuweather_images_hourly/hourly_raw2-fr}${goto 700}${execpi 600 sed -n '30p' $HOME/1c_accuweather_images_hourly/hourly_raw2-fr}${goto 760}${execpi 600 sed -n '34p' $HOME/1c_accuweather_images_hourly/hourly_raw2-fr}${goto 820}${execpi 600 sed -n '38p' $HOME/1c_accuweather_images_hourly/hourly_raw2-fr}${goto 880}${execpi 600 sed -n '42p' $HOME/1c_accuweather_images_hourly/hourly_raw2-fr}${goto 940}${execpi 600 sed -n '46p' $HOME/1c_accuweather_images_hourly/hourly_raw2-fr}${goto 1000}${execpi 600 sed -n '50p' $HOME/1c_accuweather_images_hourly/hourly_raw2-fr}
${execpi 600 sed -n '1,21p' $HOME/1c_accuweather_images_hourly/altogether}

####  icones #### 
${lua fDrawImage $HOME/1c_accuweather_images_hourly/20.png 80 60 60 40}\
${lua fDrawImage $HOME/1c_accuweather_images_hourly/23.png 140 60 60 40}\
${lua fDrawImage $HOME/1c_accuweather_images_hourly/26.png 200 60 60 40}\
${lua fDrawImage $HOME/1c_accuweather_images_hourly/29.png 260 60 60 40}\
${lua fDrawImage $HOME/1c_accuweather_images_hourly/32.png 320 60 60 40}\
${lua fDrawImage $HOME/1c_accuweather_images_hourly/35.png 380 60 60 40}\
${lua fDrawImage $HOME/1c_accuweather_images_hourly/38.png 440 60 60 40}\
${lua fDrawImage $HOME/1c_accuweather_images_hourly/41.png 500 60 60 40}\
${lua fDrawImage $HOME/1c_accuweather_images_hourly/120.png 560 60 60 40}\
${lua fDrawImage $HOME/1c_accuweather_images_hourly/123.png 620 60 60 40}\
${lua fDrawImage $HOME/1c_accuweather_images_hourly/126.png 680 60 60 40}\
${lua fDrawImage $HOME/1c_accuweather_images_hourly/129.png 740 60 60 40}\
${lua fDrawImage $HOME/1c_accuweather_images_hourly/132.png 800 60 60 40}\
${lua fDrawImage $HOME/1c_accuweather_images_hourly/135.png 860 60 60 40}\
${lua fDrawImage $HOME/1c_accuweather_images_hourly/138.png 920 60 60 40}\
${lua fDrawImage $HOME/1c_accuweather_images_hourly/141.png 980 60 60 40}
${voffset -200}
le fichier 1c

Code : Tout sélectionner

#!/bin/bash

#put your Accuweather address here
#address="http://www.accuweather.com/en/gr/kastoria/178682/weather-forecast/178682"
address="http://www.accuweather.com/en/fr/sarreguemines/57200/weather-forecast/135050"

loc_id=$(echo $address|sed 's/\/weather-forecast.*$//'|sed 's/^.*\///')
last_number=$(echo $address|sed 's/^.*\///')

curr_addr="$(echo $address|sed 's/weather-forecast.*$//')"current-weather/"$last_number"
addr1="$(echo $address|sed 's/weather-forecast.*$//')"hourly-weather-forecast/"$last_number"

kill -STOP $(pidof conky)
killall wget
rm $HOME/1c_accuweather_images_hourly/*.png

wget --save-cookies $HOME/1c_accuweather_images_hourly/cookie -O $HOME/1c_accuweather_images_hourly/curr_cond_raw $curr_addr
wget --load-cookies $HOME/1c_accuweather_images_hourly/cookie -O $HOME/1c_accuweather_images_hourly/hourly_raw1 $addr1
 
#First 8hrs - hourly_raw1 file
if [[ -s $HOME/1c_accuweather_images_hourly/hourly_raw1 ]]; then
	sed -i -e '/"arrow-small-right">Next 8 hours/,/"chart chart-top"/!d' -e 's/°/°/g' $HOME/1c_accuweather_images_hourly/hourly_raw1
	sed -i '/td style="border-right/d' $HOME/1c_accuweather_images_hourly/hourly_raw1
	sed -i -e 's/^.*<th>//g' -e 's/^.*<td class="//g' -e 's/^.*<div class="//g' $HOME/1c_accuweather_images_hourly/hourly_raw1 
	sed -i -e 's/ icon.*$//g' $HOME/1c_accuweather_images_hourly/hourly_raw1
	sed -i -e 's/^">\|first-col">\|last-col">//g' -e 's/<\/td>.*$//g' $HOME/1c_accuweather_images_hourly/hourly_raw1
	sed -i -e '60,67s/^.*>//g' -e 's/^.*row">\|<\/th>//g' -e 's/&#174;\|&deg;//g' $HOME/1c_accuweather_images_hourly/hourly_raw1
	sed -i -e 's/^.*row">\|<\/th>//g' -e 's/&#174;\|&deg;//g' $HOME/1c_accuweather_images_hourly/hourly_raw1
	sed -i -e 's/^.*<\/span><\/div>//g' $HOME/1c_accuweather_images_hourly/hourly_raw1
	sed -i -e 's/">/\n/g' -e '/<tr\|<\/tr>/d' -e 's/" class="arrow-small-right.*$//g' -e 's/^.*<span>//g' -e 's/<\/span><br \/>/:/g' $HOME/1c_accuweather_images_hourly/hourly_raw1
	sed -i -e 's/<\/div>.*$//g' -e 's/^.*icon i-//g' -e '/<th class="first/d' -e 's/^.*<th class="//g' $HOME/1c_accuweather_images_hourly/hourly_raw1
	sed -i -e 's/^.*<a href="//g' -e 's/" class=".*$//g' $HOME/1c_accuweather_images_hourly/hourly_raw1
	sed -i -e '/<\|;/d' -e 's/\r//g' -e '/^ *$/d' -e 's/^ *//g' $HOME/1c_accuweather_images_hourly/hourly_raw1
	sed -i -e 's/day.*$/day/g' -e 's/night.*$/night/g' -e 's/-h.*$//g' $HOME/1c_accuweather_images_hourly/hourly_raw1
	for (( i=20; i<=41; i+=3 ))
	  do
    	  cp $HOME/1c_accuweather_images_hourly/Forecast_Images/$(sed -n ${i}p $HOME/1c_accuweather_images_hourly/hourly_raw1).png $HOME/1c_accuweather_images_hourly/$i.png
	  done
	for (( i=21; i<=50; i+=3 ))
	  do
		  no=$(sed -n ${i}p $HOME/1c_accuweather_images_hourly/hourly_raw1|wc -c)
			if (( no<=7 )); then
				sed -i $i"s/$/\n/" $HOME/1c_accuweather_images_hourly/hourly_raw1
				i=$((i+1))
			elif (( no>7 )); then
				sed -i $i"s/^\(.\{7\}\)/\1\n/" $HOME/1c_accuweather_images_hourly/hourly_raw1
				i=$((i+1))
			fi
	  done
fi

addr2=$(sed -n 1p $HOME/1c_accuweather_images_hourly/hourly_raw1)
wget --load-cookies $HOME/1c_accuweather_images_hourly/cookie -O $HOME/1c_accuweather_images_hourly/hourly_raw2 $addr2

#Next 8hrs - hourly_raw2 file
if [[ -s $HOME/1c_accuweather_images_hourly/hourly_raw2 ]]; then
	sed -i -e '/"arrow-small-right">Next 8 hours/,/"chart chart-top"/!d' -e 's/&#176;/°/g' $HOME/1c_accuweather_images_hourly/hourly_raw2
	sed -i '/td style="border-right/d' $HOME/1c_accuweather_images_hourly/hourly_raw2
	sed -i -e 's/^.*<th>//g' -e 's/^.*<td class="//g' -e 's/^.*<div class="//g' $HOME/1c_accuweather_images_hourly/hourly_raw2 
	sed -i -e 's/ icon.*$//g' $HOME/1c_accuweather_images_hourly/hourly_raw2
	sed -i -e 's/^">\|first-col">\|last-col">//g' -e 's/<\/td>.*$//g' $HOME/1c_accuweather_images_hourly/hourly_raw2
	sed -i -e '60,67s/^.*>//g' -e 's/^.*row">\|<\/th>//g' -e 's/&#174;\|&deg;//g' $HOME/1c_accuweather_images_hourly/hourly_raw2
	sed -i -e 's/^.*row">\|<\/th>//g' -e 's/&#174;\|&deg;//g' $HOME/1c_accuweather_images_hourly/hourly_raw2
	sed -i -e 's/^.*<\/span><\/div>//g' $HOME/1c_accuweather_images_hourly/hourly_raw2
	sed -i -e 's/">/\n/g' -e '/<tr\|<\/tr>/d' -e 's/" class="arrow-small-right.*$//g' -e 's/^.*<span>//g' -e 's/<\/span><br \/>/:/g' $HOME/1c_accuweather_images_hourly/hourly_raw2
	sed -i -e 's/<\/div>.*$//g' -e 's/^.*icon i-//g' -e '/<th class="first/d' -e 's/^.*<th class="//g' $HOME/1c_accuweather_images_hourly/hourly_raw2
	sed -i -e 's/^.*<a href="//g' -e 's/" class=".*$//g' $HOME/1c_accuweather_images_hourly/hourly_raw2
	sed -i -e '/<\|;/d' -e 's/\r//g' -e '/^ *$/d' -e 's/^ *//g' $HOME/1c_accuweather_images_hourly/hourly_raw2
	sed -i -e 's/day.*$/day/g' -e 's/night.*$/night/g' -e 's/-h.*$//g' $HOME/1c_accuweather_images_hourly/hourly_raw2
	for (( i=20; i<=41; i+=3 ))
	  do
    	  cp $HOME/1c_accuweather_images_hourly/Forecast_Images/$(sed -n ${i}p $HOME/1c_accuweather_images_hourly/hourly_raw2).png $HOME/1c_accuweather_images_hourly/$(( $i+100 )).png
	  done
	for (( i=21; i<=50; i+=3 ))
	  do
		  no=$(sed -n ${i}p $HOME/1c_accuweather_images_hourly/hourly_raw2|wc -c)
			if (( no<=7 )); then
				sed -i $i"s/$/\n/" $HOME/1c_accuweather_images_hourly/hourly_raw2
				i=$((i+1))
			elif (( no>7 )); then
				sed -i $i"s/^\(.\{7\}\)/\1\n/" $HOME/1c_accuweather_images_hourly/hourly_raw2
				i=$((i+1))
			fi
	  done
fi


# Full info - altogether file
rm $HOME/1c_accuweather_images_hourly/altogether
#TEMP
echo "\${color ffffff}\${goto 10}\${hr 1}" > $HOME/1c_accuweather_images_hourly/altogether
echo "TEMP.(°C)\${color}" >> $HOME/1c_accuweather_images_hourly/altogether
jump_to=100
for (( i=52; i<=59; i+=1 ))
do
	temp=$(sed -n ${i}p $HOME/1c_accuweather_images_hourly/hourly_raw1)
	sed -i "2s/$/\${goto $jump_to}$temp/" $HOME/1c_accuweather_images_hourly/altogether
	jump_to=$(( jump_to+=60 ))
done
for (( i=52; i<=59; i+=1 ))
do
	temp=$(sed -n ${i}p $HOME/1c_accuweather_images_hourly/hourly_raw2)
	sed -i "2s/$/\${goto $jump_to}$temp/" $HOME/1c_accuweather_images_hourly/altogether
	jump_to=$(( jump_to+=60 ))
done
#REALFEEL
echo "\${color ffffff}\${goto 100}\${hr 1}" >> $HOME/1c_accuweather_images_hourly/altogether
echo "Réel.(°C)\${color}" >> $HOME/1c_accuweather_images_hourly/altogether
jump_to=100
for (( i=61; i<=68; i+=1 ))
do
	temp=$(sed -n ${i}p $HOME/1c_accuweather_images_hourly/hourly_raw1)
	sed -i "4s/$/\${goto $jump_to}$temp/" $HOME/1c_accuweather_images_hourly/altogether
	jump_to=$(( jump_to+=60 ))
done
for (( i=61; i<=68; i+=1 ))
do
	temp=$(sed -n ${i}p $HOME/1c_accuweather_images_hourly/hourly_raw2)
	sed -i "4s/$/\${goto $jump_to}$temp/" $HOME/1c_accuweather_images_hourly/altogether
	jump_to=$(( jump_to+=60 ))
done
#HUMIDITY
echo "\${color ffffff}\${goto 100}\${hr 1}" >> $HOME/1c_accuweather_images_hourly/altogether
echo "HUMIDITEE\${color}" >> $HOME/1c_accuweather_images_hourly/altogether
jump_to=100
for (( i=70; i<=77; i+=1 ))
do
	temp=$(sed -n ${i}p $HOME/1c_accuweather_images_hourly/hourly_raw1)
	sed -i "6s/$/\${goto $jump_to}$temp/" $HOME/1c_accuweather_images_hourly/altogether
	jump_to=$(( jump_to+=60 ))
done
for (( i=70; i<=77; i+=1 ))
do
	temp=$(sed -n ${i}p $HOME/1c_accuweather_images_hourly/hourly_raw2)
	sed -i "6s/$/\${goto $jump_to}$temp/" $HOME/1c_accuweather_images_hourly/altogether
	jump_to=$(( jump_to+=60 ))
done
#RAIN
echo "\${color ffffff}\${goto 100}\${hr 1}" >> $HOME/1c_accuweather_images_hourly/altogether
echo "PLUIE\${color}" >> $HOME/1c_accuweather_images_hourly/altogether
jump_to=100
for (( i=79; i<=86; i+=1 ))
do
	temp=$(sed -n ${i}p $HOME/1c_accuweather_images_hourly/hourly_raw1)
	sed -i "8s/$/\${goto $jump_to}$temp/" $HOME/1c_accuweather_images_hourly/altogether
	jump_to=$(( jump_to+=60 ))
done
for (( i=79; i<=86; i+=1 ))
do
	temp=$(sed -n ${i}p $HOME/1c_accuweather_images_hourly/hourly_raw2)
	sed -i "8s/$/\${goto $jump_to}$temp/" $HOME/1c_accuweather_images_hourly/altogether
	jump_to=$(( jump_to+=60 ))
done
#SNOW
echo "\${color ffffff}\${goto 100}\${hr 1}" >> $HOME/1c_accuweather_images_hourly/altogether
echo "NEIGE\${color}" >> $HOME/1c_accuweather_images_hourly/altogether
jump_to=100
for (( i=88; i<=95; i+=1 ))
do
	temp=$(sed -n ${i}p $HOME/1c_accuweather_images_hourly/hourly_raw1)
	sed -i "10s/$/\${goto $jump_to}$temp/" $HOME/1c_accuweather_images_hourly/altogether
	jump_to=$(( jump_to+=60 ))
done
for (( i=88; i<=95; i+=1 ))
do
	temp=$(sed -n ${i}p $HOME/1c_accuweather_images_hourly/hourly_raw2)
	sed -i "10s/$/\${goto $jump_to}$temp/" $HOME/1c_accuweather_images_hourly/altogether
	jump_to=$(( jump_to+=60 ))
done
#ICE
echo "\${color ffffff}\${goto 100}\${hr 1}" >> $HOME/1c_accuweather_images_hourly/altogether
echo "GIVRE\${color}" >> $HOME/1c_accuweather_images_hourly/altogether
jump_to=100
for (( i=97; i<=104; i+=1 ))
do
	temp=$(sed -n ${i}p $HOME/1c_accuweather_images_hourly/hourly_raw1)
	sed -i "12s/$/\${goto $jump_to}$temp/" $HOME/1c_accuweather_images_hourly/altogether
	jump_to=$(( jump_to+=60 ))
done
for (( i=97; i<=104; i+=1 ))
do
	temp=$(sed -n ${i}p $HOME/1c_accuweather_images_hourly/hourly_raw2)
	sed -i "12s/$/\${goto $jump_to}$temp/" $HOME/1c_accuweather_images_hourly/altogether
	jump_to=$(( jump_to+=60 ))
done
#WIND
echo "\${color ffffff}\${goto 100}\${hr 1}" >> $HOME/1c_accuweather_images_hourly/altogether
echo "VENT(km/h)\${color}" >> $HOME/1c_accuweather_images_hourly/altogether
jump_to=100
for (( i=106; i<=113; i+=1 ))
do
	temp=$(sed -n ${i}p $HOME/1c_accuweather_images_hourly/hourly_raw1)
	sed -i "14s/$/\${goto $jump_to}$temp/" $HOME/1c_accuweather_images_hourly/altogether
	jump_to=$(( jump_to+=60 ))
done
for (( i=106; i<=113; i+=1 ))
do
	temp=$(sed -n ${i}p $HOME/1c_accuweather_images_hourly/hourly_raw2)
	sed -i "14s/$/\${goto $jump_to}$temp/" $HOME/1c_accuweather_images_hourly/altogether
	jump_to=$(( jump_to+=60 ))
done
#UV INDEX
echo "\${color ffffff}\${goto 100}\${hr 1}" >> $HOME/1c_accuweather_images_hourly/altogether
echo "INDEX UV\${color}" >> $HOME/1c_accuweather_images_hourly/altogether
jump_to=100
for (( i=115; i<=122; i+=1 ))
do
	temp=$(sed -n ${i}p $HOME/1c_accuweather_images_hourly/hourly_raw1)
	sed -i "16s/$/\${goto $jump_to}$temp/" $HOME/1c_accuweather_images_hourly/altogether
	jump_to=$(( jump_to+=60 ))
done
for (( i=115; i<=122; i+=1 ))
do
	temp=$(sed -n ${i}p $HOME/1c_accuweather_images_hourly/hourly_raw2)
	sed -i "16s/$/\${goto $jump_to}$temp/" $HOME/1c_accuweather_images_hourly/altogether
	jump_to=$(( jump_to+=60 ))
done
#CLOUD COVER
echo "\${color ffffff}\${goto 100}\${hr 1}" >> $HOME/1c_accuweather_images_hourly/altogether
echo "COUV. NUAGE\${color}" >> $HOME/1c_accuweather_images_hourly/altogether
jump_to=100
for (( i=124; i<=131; i+=1 ))
do
	temp=$(sed -n ${i}p $HOME/1c_accuweather_images_hourly/hourly_raw1)
	sed -i "18s/$/\${goto $jump_to}$temp/" $HOME/1c_accuweather_images_hourly/altogether
	jump_to=$(( jump_to+=60 ))
done
for (( i=124; i<=131; i+=1 ))
do
	temp=$(sed -n ${i}p $HOME/1c_accuweather_images_hourly/hourly_raw2)
	sed -i "18s/$/\${goto $jump_to}$temp/" $HOME/1c_accuweather_images_hourly/altogether
	jump_to=$(( jump_to+=60 ))
done
#DEW POINT
echo "\${color ffffff}\${goto 100}\${hr 1}" >> $HOME/1c_accuweather_images_hourly/altogether
echo "ROSEE (°C)\${color}" >> $HOME/1c_accuweather_images_hourly/altogether
jump_to=100
for (( i=133; i<=140; i+=1 ))
do
	temp=$(sed -n ${i}p $HOME/1c_accuweather_images_hourly/hourly_raw1)
	sed -i "20s/$/\${goto $jump_to}$temp/" $HOME/1c_accuweather_images_hourly/altogether
	jump_to=$(( jump_to+=60 ))
done
for (( i=133; i<=140; i+=1 ))
do
	temp=$(sed -n ${i}p $HOME/1c_accuweather_images_hourly/hourly_raw2)
	sed -i "20s/$/\${goto $jump_to}$temp/" $HOME/1c_accuweather_images_hourly/altogether
	jump_to=$(( jump_to+=60 ))
done
 
  ## English to French
cp $HOME/1c_accuweather_images_hourly/hourly_raw1 $HOME/1c_accuweather_images_hourly/hourly_raw1-fr
if [[ -s $HOME/1c_accuweather_images_hourly/hourly_raw1-fr ]]; then
	sed -i -e 's/Clouds and sun/Nuages et soleil/' $HOME/1c_accuweather_images_hourly/hourly_raw1-fr
	sed -i -e 's/A couple of showers/Averses éparses/' $HOME/1c_accuweather_images_hourly/hourly_raw1-fr	
	sed -i -e 's/cloudy/Nuageux/' $HOME/1c_accuweather_images_hourly/hourly_raw1-fr
	sed -i -e 's/Mostly Cloudy/Ciel plutôt nuageux/' $HOME/1c_accuweather_images_hourly/hourly_raw1-fr
	sed -i -e 's/Rain and drizzle/Pluie et bruine/' $HOME/1c_accuweather_images_hourly/hourly_raw1-fr
	sed -i -e 's/Cloudy with a couple/Nuages épars/' $HOME/1c_accuweather_images_hourly/hourly_raw1-fr
	sed -i -e 's/Cloudy with a bit of/Nuageux,Faible pluie/' $HOME/1c_accuweather_images_hourly/hourly_raw1-fr		
	sed -i -e 's/Showers/Averses/' $HOME/1c_accuweather_images_hourly/hourly_raw1-fr
	sed -i -e 's/breezy/Venteux/' $HOME/1c_accuweather_images_hourly/hourly_raw1-fr
	sed -i -e 's/Times of clouds and/Nuages épars avec soleil/' $HOME/1c_accuweather_images_hourly/hourly_raw1-fr
	sed -i -e 's/Rain shover/Averses de pluie/' $HOME/1c_accuweather_images_hourly/hourly_raw1-fr
	sed -i -e 's/Rain/Pluie/' $HOME/1c_accuweather_images_hourly/hourly_raw1-fr
	sed -i -e 's/Light rain/Pluie/' $HOME/1c_accuweather_images_hourly/hourly_raw1-fr
	sed -i -e 's/Cloudy/Nuageux/' $HOME/1c_accuweather_images_hourly/hourly_raw1-fr
	sed -i -e 's/Mostly cloudy/Peu nuageux/' $HOME/1c_accuweather_images_hourly/hourly_raw1-fr
	sed -i -e 's/Mostly/Peu/' $HOME/1c_accuweather_images_hourly/hourly_raw1-fr
fi

 ## English to French
cp $HOME/1c_accuweather_images_hourly/hourly_raw2 $HOME/1c_accuweather_images_hourly/hourly_raw2-fr
if [[ -s $HOME/1c_accuweather_images_hourly/hourly_raw2-fr ]]; then
	sed -i -e 's/Clouds and sun/Nuages et soleil/' $HOME/1c_accuweather_images_hourly/hourly_raw2-fr
	sed -i -e 's/A couple of showers/Averses éparses/' $HOME/1c_accuweather_images_hourly/hourly_raw2-fr	
	sed -i -e 's/cloudy/Nuageux/' $HOME/1c_accuweather_images_hourly/hourly_raw2-fr
	sed -i -e 's/Mostly Cloudy/Ciel plutôt nuageux/' $HOME/1c_accuweather_images_hourly/hourly_raw2-fr
	sed -i -e 's/Rain and drizzle/Pluie et bruine/' $HOME/1c_accuweather_images_hourly/hourly_raw2-fr
	sed -i -e 's/Cloudy with a couple/Nuages épars/' $HOME/1c_accuweather_images_hourly/hourly_raw2-fr
	sed -i -e 's/Cloudy with a bit of/Nuageux,Faible pluie/' $HOME/1c_accuweather_images_hourly/hourly_raw2-fr		
	sed -i -e 's/Showers/Averses/' $HOME/1c_accuweather_images_hourly/hourly_raw2-fr
	sed -i -e 's/breezy/Venteux/' $HOME/1c_accuweather_images_hourly/hourly_raw2-fr
	sed -i -e 's/Times of clouds and/Nuages épars avec soleil/' $HOME/1c_accuweather_images_hourly/hourly_raw21-fr
	sed -i -e 's/Rain shover/Averses de pluie/' $HOME/1c_accuweather_images_hourly/hourly_raw2-fr
	sed -i -e 's/Rain/Pluie/' $HOME/1c_accuweather_images_hourly/hourly_raw2-fr
	sed -i -e 's/Light rain/Pluie/' $HOME/1c_accuweather_images_hourly/hourly_raw2-fr
	sed -i -e 's/Cloudy/Nuageux/' $HOME/1c_accuweather_images_hourly/hourly_raw2-fr
	sed -i -e 's/Mostly cloudy/Peu nuageux/' $HOME/1c_accuweather_images_hourly/hourly_raw2-fr
	sed -i -e 's/Mostly/Peu/' $HOME/1c_accuweather_images_hourly/hourly_raw2-fr
fi

kill -CONT $(pidof conky)
ce que ça donne:
Image
@+
Modifié en dernier par zeb le mer. 29 avr. 2020 15:02, modifié 1 fois.
Raison : image mise sur FFLMpics
HP Pavilion g 7 1357 sf avec ssd Tessa cinnamon Mageia 7rc mate
Asus ROG avec xubuntu 18.04 et xubuntu 19.04

Image

Avatar du membre
happicoin
Messages : 11
Enregistré le : dim. 4 oct. 2015 15:13

Re: Conky

Message par happicoin »

Voici quelques scripts conky à modifier à votre goût
Hexchat -- Périphériques connectés sur le réseau -- Info sur le réseau interne

----------- hexchat (4 scripts)--------------

1) Ce script va vérifier si Hexchat est en cours d'utilisation, si oui il va exécuter 'conky -c ~/.Conky/.conky-chat &' et de plus quand hexchat se ferme il "kill" xchat-conky.

À mettre dans votre script de lancement de conky

~/.Conky/.scripts/xchat-conky.sh &

Image

Code : Tout sélectionner

#!/bin/sh -v

if [ "$1" = "-k" ]; then
    NAME=`basename $0`
    killall $NAME conky
    exit
fi

if [ "$1" != "-b" ]; then
    $0 -b > /dev/null &
    exit
fi

while :
do
    XCHAT_PID=`pidof hexchat`
    if [ "$(pidof hexchat)" ] && ! [ "$(ps $XCHAT_PID |grep -i \<defunct\>)" ]; then
        if [ -z $CONKY_PID ] || ! ps $CONKY_PID || ps $CONKY_PID |grep -i \<defunct\>; then
            sleep 2
		conky -c ~/.Conky/.conky-chat &
            CONKY_PID=$!
        fi
    else 
        if [ -n "$CONKY_PID" ]; then
            kill $CONKY_PID
            CONKY_PID=""
        fi
    fi
    sleep 1
done 
2) irc-prettifier.awk installer dans => .Conky/.scripts/

Code : Tout sélectionner

#!/usr/bin/awk -f
# Copyright (c) 2013 Wolf480pl (wolf480@interia.pl)
# irc-prettifier.awk
# Prettifies XChat scrollback from standard input.
# Use -v variable=value argument to set the variables, eg: -v limit=80 notime=yes
# Variables: limit - line length limit (-1 for no limit), sep - nick/message separator, notime - `yes' or `true' to hide timestamps

BEGIN{
	# Line length limit
	if (limit == "") limit = -1
	# Nick/message separator
	if (sep == "") sep = "│ "
}

{
	# Get rid of 0x08 and 0x0F characters
	gsub(/[\x02\x08\x0F]/, "");
	# Get rid of colorcodes
	gsub(/\x03[0-9]*/,"");
	# Match timestamps
	match($0, /T ([0-9]*)(([^\t]*\t)?)/, a);
	# Replace tabs with nick/message separators
	gsub(/\t/,sep);
	# Parse timestamps
	if (notime !~ /(yes)|(true)/) time = strftime("%H:%M:%S", substr($0, a[1, "start"], a[1, "length"]));
	# Join the line together
	line = time sprintf("%15s", substr($0, a[2, "start"], a[2, "length"])) substr($0, a[2, "start"] + a[2, "length"]);
	# Print trimmed line if limit is set
	if (limit >= 0) print substr(line, 0, limit )
	# Or print not-trimmed line if the limit is not set
	else print line;
}
3) xchat-get-topic.sh installer dans => .Conky/.scripts/

Code : Tout sélectionner

#!/bin/sh
# Copyright (c) 2013 Wolf480pl (wolf480@interia.pl)
# xchat-get-topic.sh
# le topic du canal de HexChat via DBus et imprime sur la sortie standard
# Syntax: xchat-get-topic.sh <network> <channel> <length limit>

# Find the context connected with specified network and channel
context=`dbus-send --dest=org.hexchat.service --print-reply --type=method_call /org/xhexchat/Remote org.hexchat.plugin.FindContext string:"$1" string:"$2" | tail -n1 | awk '{print $2}'`
# Set the context to the context found in previous line
dbus-send --dest=org.hexchat.service --type=method_call /org/hexchat/Remote org.hexchat.plugin.SetContext uint32:$context
# Get the channel topic
dbus-send --dest=org.hexchat.service --print-reply --type=method_call /org/hexchat/Remote org.hexchat.plugin.GetInfo string:"topic" | awk -v limit=$3 '{if ($0~/string/) {$1=""; match($0, /\"(.*)\"/, a); printf substr(substr($0, a[1, "start"], a[1, "length"]),0,limit ("prefix_out" int((NR+4)/5)))}}'
4) .conky-chat installer dans => .Conky/

Code : Tout sélectionner

color1 DDDDDD 			# Gris
color2 006FC0 			# Bleu
color3 8AD749 			# Vert
color4 EECE01 			# Jaune
color5 F8981F 			# Orange
color6 F80E27 			# Rouge


TEXT
# Get the channel topic from HexChat, network "freemod", channel #FFLM, length limit: 110 chars. Use backshash before channel name to escape comment char (#)


### Display a nice table header with channel name. Use backshash before channel name to escape comment char (#)
${color5}=================== ${color3}FREENOD ${color5}=========== ${color3}\#FFLM ${color5}========================= ${color1}  

${exec tail ~/.config/hexchat/scrollback/freenode/#fflm.txt | ~/.Conky/.scripts/irc-prettifier.awk -v limit=100 sep="│ "}    

${color5}=================== ${color3}FREENOD${color5} =========== ${color3}\#debian-facile ${color5}==================== ${color1}
${exec tail ~/.config/hexchat/scrollback/freenode/#debian-facile.txt | ~/.Conky/.scripts/irc-prettifier.awk -v limit=100 sep="│ "} 

${color5}==================== ${color3}FREENOD ${color5} =========== ${color3}\#ubuntu-fr ${color5}====================== ${color1}

${exec tail ~/.config/hexchat/scrollback/freenode/#ubuntu-fr.txt | ~/.Conky/.scripts/irc-prettifier.awk -v limit=100 sep="│ "}

Information sur votre connexion

1) .conky-ip installer dans => .Conky/

Image

Code : Tout sélectionner

Information cartes réseaux
${execpi 50 ~/.Conky/.scripts/ip.sh}
${if_up tun0}${color green}Connexion sécurisée -- Vpn activé --${else}${color 8AD749}${blink Connexion non sécurisée}${endif}${color} 
2) ip.sh installer dans => .Conky/scripts/

Code : Tout sélectionner

#!/bin/bash
read  COUNTRY COUNTRYCODE <<< $(wget -qO- http://ip-api.com/line/?fields=city,countryCode,country,city,);
echo "\${color5}"Pays :""\${color6} "$COUNTRY ($COUNTRYCODE)";
read  CITY <<< $(wget -qO- http://ip-api.com/line/?fields=city,);
echo "\${color5}""Villes : "\${color6}"$CITY";
read  REGIONNAME <<< $(wget -qO- http://ip-api.com/line/?fields=regionName,);
echo  "\${color5}""Region : "\${color6}"$REGIONNAME ";
read  COUNTRYCODE COUNTRY IP <<< $(wget -qO- http://ip-api.com/line/?fields=countryCode,country,query,);
echo  "\${color5}""IP : "\${color6}"$IP ";
read  ISP <<< $(wget -qO- http://ip-api.com/line/?fields=isp,);
echo  "\${color5}""Organisation : "\${color6}"$ISP ""\${color5}";
echo  "\${color5}""DNS : "\${color6}"\${nameserver}""\${color5}";
#-------------------- Interface reseaux utiliser ------------------------
echo  "\${color2}""Interface Réseaux : "\${color1}"\${gw_iface}""\${color2}";
echo  "\${color2}""Ip locale : "\${color1}"\${addr}""\${color2}";
echo  "\${color2}""Passerelle : "\${color1}"\${gw_ip}""\${color2}";

Information sur votre reseau local

Attention il faut installer nmap sur votre distribution
il va être un peu lent à s’afficher, le temps du scan qu'il doit faire.

1) .conky-nmap installer dans => .Conky/

Image

Code : Tout sélectionner

TEXT
${color1}${font :size=7}Périphériques connectées sur le reseaux${font}${color}
${color4}${hr}${color}
${execi 100 ~/.Conky/.scripts/nmap.pl eth0}

2) nmap.pl installer dans => .Conky/.scripts/

Modifier ligne 16 '$adapter ="eth0" ' selon votre type de connection

Code : Tout sélectionner

#!/usr/bin/perl
################
######## NMAP SCRIPT
##author: iltiscat
#mail:	schmiddim@gmx.at
#web:  	http://schmiddi.co.cc
#date:	02.10.09
#desc: 	a small script for conky lists all ip's in your subnet. 
#use:	write ${execi 100 ~/.conky/nmap.pl wlan0} in your ~/.conkyrc
#	100 means the refresh intervall in seconds. 
#	you can assign a interface with the argument. Without,
#	the subnet of eth0 will be analyzed. HF:)
	
$adapter= @ARGV[0];
if (@ARGV[0] eq""){
	$adapter ="eth0";
}#fi

#get my ip
$string =  `ifconfig $adapter`;
$string =~m/([0-9]+\.){3}[0-9]+/g;
$myip=$&;

#connected?
$status=  system ("ping -c 1 $myip  -t 2 >/dev/null");
if ($status != 0) {
	print "not connected to a network :-(\n";
	exit (-1); #no network connection
}


#get the subnet
$str= $myip;

while($myip =~ m/\w\.\b/g) {$lastpos= pos($myip), " " };
	$subnet = substr($myip,0, $lastpos-1);
$subnet= "$subnet.1-253\n";

#parse the nmap result
$retval = `nmap -sP $subnet`;
$ctr=0;
$_=$retval;
	while (/([0-9]+\.){3}[0-9]+/g) {
		if ($ctr%2 == 0) {
			print  "$&\t";
			}else{
			print "$&\n";
		}#fi
    $ctr++;
  }

if ($ctr%2 ==0) {
	print "";
}else{
	print"\n";
}
print "$ctr Connection(s)\n";
Et voilà pour l’instant.
Modifié en dernier par happicoin le mer. 20 janv. 2016 11:37, modifié 1 fois.
CM :MSI z87-g45-Gaming ; CPU : i5-4670k; CG nividia GTX 660
Dual boot linux-mint 18 ; Windows 8.1

zeb
Messages : 16473
Enregistré le : ven. 19 juin 2015 22:13
Localisation : plus ici

Re: Conky

Message par zeb »

Salut happicoin,
Oui, le casse noisette est de sortie :D
Il serait fort intéressant d'ajouter une image à tes codes, histoire de voir à quoi ça ressemble :roll:

Merci, merci ;)

Avatar du membre
supersoul
Messages : 18
Enregistré le : ven. 21 août 2015 03:45

Re: Conky

Message par supersoul »

Code : Tout sélectionner

################################################################################
# Conky is a free, light-weight system monitor for X, 
# that displays any information on your desktop. 
# Conky is licensed under the GPL and runs on Linux and BSD.
# sergeg 

################################################################################
# Paramètres

double_buffer yes
no_buffers yes
cpu_avg_samples 2

update_interval 1.0
total_run_times 0

own_window yes
own_window_class Conky
own_window_transparent yes
own_window_argb_visual yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

background no

override_utf8_locale yes
xftalpha 1
use_xft yes
#xftfont Sans:size=10
xftfont Liberation Sans:size=10
uppercase no

draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no

minimum_size 200 0
maximum_width 0

alignment bottom_left
gap_x 7
gap_y 0

default_color ffffff
default_shade_color 000000
default_outline_color 000000

color1 dadada #blanc cassé
color2 FE9D44 #orange
color3 00FF90 #vert
color4 ADD8E6 #bleu poudre
color5 7f7f7f #gris

################################################################################
TEXT
${color}${font DejaVu Sans Mono:style=bold:size=11}Linux Mint${color1}${font} GNU/${sysname}${color5} ${voffset 2}$hr
${color2}17.2 Rafaela
${voffset 5}${color}uptime${color3}${alignr}${uptime}
${color}hôte${color4}${alignr}${nodename}
${color}noyau${color4}${alignr}${kernel}





${color}${font DejaVu Sans Mono:style=bold:size=11}Processeur${color5} ${voffset 2}$hr
${color2}${font}${cpugraph cpu}
${color}cpu0 ${color3}${cpu cpu0}% ${color4}${cpubar cpu0}
${color}cpu1 ${color3}${cpu cpu1}% ${color4}${cpubar cpu1}





${color}${font DejaVu Sans Mono:style=bold:size=11}Mémoire${color5} ${voffset 2}$hr
${color}${font}ram ${color3}${memperc}% ${color4}${membar}
${color5}${alignr}$mem/$memmax





${color}${font DejaVu Sans Mono:style=bold:size=11}Disque${color5} ${voffset 2}$hr
${color}${font}swap ${color3}${swapperc}%${color4} ${swapbar}
${color5}${alignr}${swap}/${swapmax}
${color}/ ${color3}${fs_used_perc /}%${color4} ${fs_bar /}
${color5}${alignr}${fs_used /}/${fs_size /}
${color}/home ${color3}${fs_used_perc /home}%${color4} ${fs_bar /home}
${color5}${alignr}${fs_used /home}/${fs_size /home}





${color}${font DejaVu Sans Mono:style=bold:size=11}Processus${color5} ${voffset 2}$hr
${color4}${font}${top name 1}${color3}$alignr${top cpu 1}%
${color4}${top name 2}${color3}$alignr${top cpu 2}%
${color4}${top name 3}${color3}$alignr${top cpu 3}%
${color4}${top name 4}${color3}$alignr${top cpu 4}%
${color4}${top name 5}${color3}$alignr${top cpu 5}%





${color}${font DejaVu Sans Mono:style=bold:size=11}Internet${color5} ${voffset 2}$hr
${color2}${font}${downspeedgraph eth0 -l}
${color}téléchargement${color3}$alignr${downspeedf eth0} KiB/s
${color2}${upspeedgraph eth0 l}
${color}téléversement${color3}$alignr${upspeedf eth0} KiB/s
Image
Modifié en dernier par zeb le mer. 29 avr. 2020 15:22, modifié 1 fois.
Raison : image mise sur FFLMpics

Avatar du membre
dagonh
Messages : 1512
Enregistré le : lun. 13 juil. 2015 15:41

Re: Conky

Message par dagonh »

zebulon a écrit :Oui, le casse noisette est de sortie
Tu devrais changer de pseudo pour « Tchaïkovski ». :lol:
CM Gigabyte Z97-HD3, Intel i7-4790K, RAM 16 Go
système sur SSD 240 Go + 3 To pour les données (+2,5 To externes pour les sauvegardes)
Écran Hanns 27" 16/10
Sarah Maté

zeb
Messages : 16473
Enregistré le : ven. 19 juin 2015 22:13
Localisation : plus ici

Re: Conky

Message par zeb »

Merci pour les images, ça aide à voir les résultats, qui sont vraiment pas mal ;)
dagonh a écrit :Tu devrais changer de pseudo pour « Tchaïkovski ». :lol:
c'est trop classique pour moi :D

Répondre