Vos Conky
Postez ici vos conkys ou des petits bouts et demandes d'aide.
Discussions Libres
Ami age Membre non connecté
-
- Voir le profil du membre Ami age
- Inscrit le : 18/08/2012
- Site internet
- Groupes :
-
Modérateur
Reprise du message précédent
admel:
Bonsoir tout le monde,
Déterrage de post, mais le sujet conky n'est jamais vraiment mort
Voici mon dernier bureau/conky. Simple, sobre et discret :

Le conky en lui-même n'est pas nouveau, mais je les remis au goût du jour et surtout remis de l'ordre par rapport à l'original.
Voici le .conkyrc :
Caché:
Code TEXT :
#==================================================================================================#
# conkyrc_smooth #
# Date : 19/05/2015 #
# Auteur : admel #
# Version : v0.1 #
# Licence : Distibué sous les termes de GNU GPL V.3 et postérieur #
# #
# Ceci est une modification de conkyrc_Jess_Smooth3 --> Présentation & organisation améliorée #
# #
# conkyrc_Jess_Smooth3 : http://www.deviantart.com/art/Smooth-Conky-V3-Made-for-Conky-Manager-2-2-461461882 #
#==================================================================================================#
### Paramètres de conky ###
#Fonctionnement de conky
background no#Pour que conky tourne en arrière plan ; no = pour les tests
total_run_times 0#Temps en secondes ; 0 = toujours actif
#Mémoire
double_buffer yes#Éviter le clignotement
no_buffers yes#Soustraire les mémoires tampons de la mémoire utilisée
text_buffer_size 2048#Taille du cache pour le texte
#Réglages système
cpu_avg_samples 1#Nb d'échantillons pour calculer la moyenne d'utilisation CPU
net_avg_samples 2#Nb d'échantillons pour calculer la moyenne d'utilisation CPU
imlib_cache_size 0#
#Affichage
out_to_console no#Affiche le texte sur la sortie standard
update_interval 1#Taux de rafraîchissement de la fenêtre(s)
#Fenêtre conky
own_window yes#Utiliser sa propre fenêtre
own_window_type normal#Type de fenêtre ; normal / override / desktop
own_window_transparent yes#Pseudo transparence
own_window_argb_visual yes
own_window_argb_value 0
own_window_colour 000000
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
#---
stippled_borders 0
#---
border_inner_margin 5
border_width 1#Largeur du contour
#---
default_color FDFDFD#Couleur par défaut
default_shade_color 000000#Couleur des ombres
default_outline_color 000000#Couleur des contours
#---
minimum_size 0 0#Taille minimum (px) ; largeur / hauteur
maximum_width 800#Largeur maximum (px)
#---
alignment top_left#Alignement
gap_x 820#Écart avec le bord gauche / droit
gap_y 120#Écart avec le bord haut / bas
#---
no_buffers yes#Soustraire les mémoires tampons de la mémoire utilisée
#---
uppercase no#Tout le texte en majuscule
#Paramètres graphique
draw_shades no#Afficher les ombres
draw_outline no#Afficher les contours de fenêtre
draw_borders no#Afficher des contours autour des blocs de texte
draw_graph_borders no#
color1 FDFDFD#Blanc
color2 121111#Noir
color3 77BF85#Vert clair
short_units yes#
#Mise en forme
use_xft yes#Utiliser Xft (polices lissées etc)
xftalpha 0.8#Utiliser Xft
override_utf8_locale yes#Force l'UTF8
use_spacer none#Ajoute des espaces après certans objets (qu'avec des polices fixes)
#---
xftfont ITC Avant Garde Gothic Pro:size=9#Police par défaut
TEXT
${goto 70}${font ITC Avant Garde Gothic Pro:size=100} ${time %I}${font ITC Avant Garde Gothic Pro:size=25}${voffset -35}${time %P}${color3}${font ITC Avant Garde Gothic Pro:size=100}${voffset -38}${time %M}${color1}
${goto 20}${voffset -210}${font ITC Avant Garde Gothic Pro:size=15} ${time %a}
${goto 7}${voffset -1}${font ITC Avant Garde Gothic Pro:bold:size=25} ${time %b} # Mois
${goto 20}${voffset 30}${color3}${font ITC Avant Garde Gothic Pro::size=30}${time %d}${color1} # n° du jour
${goto 40}${voffset -5}${font ITC Avant Garde Gothic Pro:size=15}Mem${color3} $memperc%${color1}
${goto 150}${voffset -42}Cpu${color3} ${cpu cpu0}%${color1}
${goto 270}${voffset -42}WiFi ${color3}${wireless_link_qual wlp5s0}%${color1}# Choisir "wlp5s0"/"wlan"
${goto 380}${voffset -42}Battery${color3} ${battery_percent BAT1}%# Choisir "BAT1"/"BAT0"/"BATT"
### Weather ###
${texeci 1300 curl -s "http://weather.yahooapis.com/forecastrss?w=608105&u=c" -o ~/.cache/weather.xml}
${offset 420}${voffset -115}${font ITC Avant Garde Gothic Pro:bold:size=20}${execi 1300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "temp="[^"]*"" | grep -o ""[^"]*"" | grep -o "[^"]*"}${font ITC Avant Garde Gothic Pro:bold:size=8}${voffset -16}o${voffset 14}${font}${color1}
${execi 1300 cp -f ~/.conky/.weather-icons/$(grep "yweather:condition" ~/.cache/weather.xml | grep -o "code="[^"]*"" | grep -o ""[^"]*"" | grep -o "[^"]*").png ~/.cache/weather.png}${image ~/.cache/weather.png -p 425,23 -s 35x35}
${offset 420}${voffset -130}${font ITC Avant Garde Gothic Pro:size=14} LilleEnjoy
J'aime bien le style
_______________________________________________________________________

___________________________________ Un petit clic pour Mageia ? =>> CLIQUEZ I C I :
.

___________________________________ Un petit clic pour Mageia ? =>> CLIQUEZ I C I :
.
Adrien.D Membre non connecté
-
- Voir le profil du membre Adrien.D
- Inscrit le : 30/05/2011
- Site internet
- Groupes :
Config : PC Fixe : X470 GAMING PRO- AMD Ryzen 5 2600X - 16Go RAM - Radeon RX 560 (Pilote libre) - Gentoo Linux - GNOME Desktop - Kernel 5.10 LTS
Ancien Webmaster de MageiaLinuxOnline. Les remplaçants assurent !
Ancien Webmaster de MageiaLinuxOnline. Les remplaçants assurent !

Elises Membre non connecté
-
- Voir le profil du membre Elises
- Inscrit le : 02/03/2016
loutch Membre non connecté
-
- Voir le profil du membre loutch
- Inscrit le : 07/07/2010
- Groupes :
.gif)
Conky météo accuweather (l'ancien ne fonctionne plus depuis la refonte complète du site accuweather.com)
le pack est @ prendre ici :
https://forums.bunsenlabs.org/viewtopic.php?id=189
le conkyrc
Code TEXT :
background yes
use_xft yes
xftfont GE Inspira:size=9
xftalpha 1
update_interval 1.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 450 440
maximum_width 455
text_buffer_size 2048
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color white #dbc38f
default_outline_color black
alignment tl
gap_x 60
gap_y 60
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
uppercase no
color7 6495ee
color9 red
lua_load ~/.conky/lua/image.lua
TEXT
${execi 600 bash $HOME/1_accuweather/1_accuweather -f -h}
#### Prelier cadre ####
${voffset -30}${font LED_mono :style=Medium:size=55}${color 434343}${goto 27}${time %H}${goto 138}${time %M}${font LED_mono :size=20:style=Medium}${color 808080}${goto 235}${time %S}$font
#### Date ####
${voffset -30}${color white}${font GE Inspira:size=9}${alignc -108}${time %A, %d %B %Y}$font
### vent ####
${voffset 10}
${goto 310}${font GE Inspira:size=10}Vent : ${execi 90 sed -n '5p' $HOME/1_accuweather/curr_cond-fr}
${goto 310}Vitesse : ${execi 90 sed -n '6p' $HOME/1_accuweather/curr_cond}
${goto 310}Préssion : ${execi 90 sed -n '8p' $HOME/1_accuweather/curr_cond}
${goto 310}Indice UV : ${execi 90 sed -n '9p' $HOME/1_accuweather/curr_cond} $font
#### Ville ####
${voffset -50}${font GE Inspira:size=14:}Sarreguemines : ${font} ${execi 90 sed -n '4p' $HOME/1_accuweather/curr_cond-fr}
Temp.: ${execi 90 sed -n '2p' $HOME/1_accuweather/curr_cond} °C Res.: ${execi 90 sed -n '3p' $HOME/1_accuweather/curr_cond} °C
Alerte : ${execi 600 sed -n '2p' $HOME/1_accuweather/Alertes}
#### Deuxième cadre ####
##### Affichage temperatures #####
${voffset 1}
${goto 20}${color7}${execi 90 sed -n '9p' $HOME/1_accuweather/first_days}°${color}/${color9}${execi 90 sed -n '8p' $HOME/1_accuweather/first_days}°${color}
${goto 95}${color7}${execi 90 sed -n '14p' $HOME/1_accuweather/first_days}°${color}/${color9}${execi 90 sed -n '13p' $HOME/1_accuweather/first_days}°${color}
${goto 170}${color7}${execi 90 sed -n '19p' $HOME/1_accuweather/first_days}°${color}/${color9}${execi 90 sed -n '18p' $HOME/1_accuweather/first_days}°${color}
${goto 245}${color7}${execi 90 sed -n '24p' $HOME/1_accuweather/first_days}°${color}/${color9}${execi 90 sed -n '23p' $HOME/1_accuweather/first_days}°${color}
${goto 320}${color7}${execi 90 sed -n '4p' $HOME/1_accuweather/last_days}°${color}/${color9}${execi 90 sed -n '3p' $HOME/1_accuweather/last_days}°${color}
${goto 400}${color7}${execi 90 sed -n '9p' $HOME/1_accuweather/last_days}°${color}/${color9}${execi 90 sed -n '8p' $HOME/1_accuweather/last_days}°${color}
#### Affichage date ####
${voffset 40}
${goto 20}${execi 3600 echo `date --date="1 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="1 day" | awk '{print $3}'`}
${goto 95}${execi 3600 echo `date --date="2 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="2 day" | awk '{print $3}'`}
${goto 170}${execi 3600 echo `date --date="3 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="3 day" | awk '{print $3}'`}
${goto 245}${execi 3600 echo `date --date="4 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="4 day" | awk '{print $3}'`}
${goto 320}${execi 3600 echo `date --date="5 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="5 day" | awk '{print $3}'`}
${goto 400}${execi 3600 echo `date --date="6 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="6 day" | awk '{print $3}'`}
#### Troisième cadre ####
${voffset -22}
${color FFFFFF}${goto 10}${voffset 20}${cpu cpu0}%
${goto 55}${exec expr `cat /sys/class/hwmon/hwmon2/temp1_input` / 1000} °
${goto 105}${execi 120 hddtemp -n /dev/sda} °
${goto 155}${hwmon 1 temp 1} °
${goto 200}${memperc}%
${goto 255}${fs_used_perc /}%
${goto 305}${fs_used_perc /home}%
${goto 350}${downspeed wlp2s0}
${goto 400}${upspeed wlp2s0}
${color 6495ee}${goto 10}CPU
${goto 50}Temp
${goto 100}Disque
${goto 150}Carte
${goto 200}Ram
${goto 250}Racine
${goto 300}Home
${goto 350}Entrant
${goto 400}Sortant $color
${goto 250}Signal : ${wireless_link_qual wlp2s0} %${goto 350}${totaldown wlp2s0}${goto 400}${totalup wlp2s0}
${color FFFFFF}${font caviar dreams:size=8}Uptime: ${uptime_short}
${color FFFFFF}${font caviar dreams:size=8}Processes: ${processes}
${color FFFFFF}${font caviar dreams:size=8}Running: ${running_processes}
${voffset -54}
${color 6495ee}${font caviar dreams:size=8}${alignr 20}${nodename}
${color 6495ee}${font caviar dreams:size=8}${alignr 20}Mageia 5 $machine
${color 6495ee}${font caviar dreams:size=8}${alignr 20}Kernel: ${kernel}
#### Affichage des cadres utilisés dans le conky ####
${voffset -935}
#### premier cadre ####
${lua fDrawImage $HOME/1_accuweather/fond/base.png 0 40 450 110}
${lua fDrawImage $HOME/1_accuweather/fond/flip_bg.png 22 3 100 100}
${lua fDrawImage $HOME/1_accuweather/fond/flip_bg.png 132 3 100 100}
#### Second cadre ####
${lua fDrawImage $HOME/1_accuweather/fond/base.png 0 155 450 85}
#### Troisième cadre ####
${lua fDrawImage $HOME/1_accuweather/fond/base.png 0 250 450 85}
#### icônes premier cadre ####
${lua fDrawImage $HOME/1_accuweather/0.png 205 70 132 70}
${lua fDrawImage $HOME/1_accuweather/Wind1.png 370 40 90 90}
#### icônes Second cadre ####
${lua fDrawImage $HOME/1_accuweather/1.png -15 170 90 55}
${lua fDrawImage $HOME/1_accuweather/2.png 60 170 90 55}
${lua fDrawImage $HOME/1_accuweather/3.png 135 170 90 55}
${lua fDrawImage $HOME/1_accuweather/4.png 215 170 90 55}
${lua fDrawImage $HOME/1_accuweather/5.png 290 170 90 55}
${lua fDrawImage $HOME/1_accuweather/6.png 370 170 90 55}
${voffset - 800}
le 1_accuweather ( a rendre éxecutable)
Code TEXT :
#!/bin/bash
if (( $# < 1 )); then
exit
fi
#put your Accuweather address here
#address="http://www.accuweather.com/en/ca/montreal/h3a/weather-forecast/56186"
address="http://www.accuweather.com/en/fr/sarreguemines/135050/weather-forecast/135050"
#address="http://www.accuweather.com/en/gr/kastoria/178682/weather-forecast/178682"
loc_id=$(echo $address|sed 's//weather-forecast.*$//'|sed 's/^.*///')
last_number=$(echo $address|sed 's/^.*///')
###################################################
#NORMAL FORECAST: -f passed as 1rst or 2nd argument
###################################################
if [[ $1 == -f || $2 == -f ]]; then
#function: test_image
test_image () {
case $1 in
1)
echo a
;;
2|3)
echo b
;;
4|5)
echo c
;;
6)
echo d
;;
7)
echo e
;;
8)
echo f
;;
11)
echo 0
;;
12)
echo h
;;
13|14)
echo g
;;
15)
echo m
;;
16|17)
echo k
;;
18)
echo i
;;
19)
echo q
;;
20|21|23)
echo o
;;
22)
echo r
;;
24|31)
echo E
;;
25)
echo v
;;
26)
echo x
;;
29)
echo y
;;
30)
echo 5
;;
32)
echo 6
;;
33)
echo A
;;
34|35)
echo B
;;
36|37)
echo C
;;
38)
echo D
;;
39|40)
echo G
;;
41|42)
echo K
;;
43|44)
echo O
;;
*)
echo -
;;
esac
}
kill -STOP $(pidof conky)
killall wget
curr_addr="$(echo $address|sed 's/weather-forecast.*$//')"current-weather/"$last_number"
wget -O $HOME/1_accuweather/curr_cond_raw "$curr_addr"
addr1="$(echo $address|sed 's/weather-forecast.*$//')"daily-weather-forecast/"$last_number"
wget -O $HOME/1_accuweather/first_days_raw "$addr1"
addr2="$addr1"?day=6
wget -O $HOME/1_accuweather/last_days_raw "$addr2"
rm $HOME/1_accuweather/*.png
#current conditions
if [[ -s $HOME/1_accuweather/curr_cond_raw ]]; then
sed -i '/detail-now/,/Astronomy <span class/!d' $HOME/1_accuweather/curr_cond_raw
egrep -i '"cond"|icon i-|large-temp|small-temp|wind-point|"wind"|Humidity|Pressure|UV Index|Cloud Cover|Ceiling|Dew Point|Visibility|Duration|Sunrise:|Sunset:|Moonrise:|Moonset:' $HOME/1_accuweather/curr_cond_raw > $HOME/1_accuweather/curr_cond
sed -i -e 's/^.*<strong>//g' -e 's/^.*<span>//g' -e 's/^.*icon i-//g' -e 's/^.*large-temp">//g' -e 's/^.*</em> //g' -e 's/^.*"cond">//g' -e 's/^.*wind-point //g' $HOME/1_accuweather/curr_cond
sed -i -e 's/">.*$//g' -e 's/°.*$//g' -e 's/</span>.*$//g' -e 's/&#.*$//g' -e 's/ &darr.*$//g' -e 's/ &uarr.*$//g' -e 's/</strong>.*$//g' $HOME/1_accuweather/curr_cond
sed -i '1s/-.*$//' $HOME/1_accuweather/curr_cond
image=$(sed -n 1p $HOME/1_accuweather/curr_cond)
echo $(test_image $image) >> $HOME/1_accuweather/curr_cond
cp $HOME/1_accuweather/Forecast_Images_2016/$(sed -n 1p $HOME/1_accuweather/curr_cond).png $HOME/1_accuweather/0.png
fi
#First 5 days
if [[ -s $HOME/1_accuweather/first_days_raw ]]; then
sed -i '/.feed-controls/,/.feed-tabs/!d' $HOME/1_accuweather/first_days_raw
egrep -i 'href="#"|icon i-|"large-temp"|"small-temp"|temp-label|"cond"' $HOME/1_accuweather/first_days_raw > $HOME/1_accuweather/first_days
sed -i -e '/icon/s/-. //g' -e 's/^.*icon i-//g' -e 's/^.*large-temp">//g' -e 's/^.*small-temp">///g' -e 's/^.*"cond">//g' -e 's/^.*href="#">//g' -e 's/^.*"temp-label tonight ">//g' -e 's/^.*"temp-label tonight selected">//g' $HOME/1_accuweather/first_days
sed -i -e 's/°.*$//g' -e 's/</a>.*$//g' -e 's/</span>.*$//g' -e 's/">.*$//g' $HOME/1_accuweather/first_days
sed -i -e 's/Mon/Monday/' -e 's/Tue/Tuesday/' -e 's/Wed/Wednesday/' -e 's/Thu/Thursday/' -e 's/Fri/Friday/' -e 's/Sat/Saturday/' -e 's/Sun/Sunday/' $HOME/1_accuweather/first_days
for (( i=2; i<=22; i+=5 ))
do
image=$(sed -n "${i}"p $HOME/1_accuweather/first_days)
echo $(test_image $image) >> $HOME/1_accuweather/first_days
done
j=1
for (( i=2; i<=22; i+=5 ))
do
cp $HOME/1_accuweather/Forecast_Images_2016/$(sed -n ${i}p $HOME/1_accuweather/first_days).png $HOME/1_accuweather/$j.png
((j++))
done
fi
# icone direction vent
wind_direction=$(sed -n 5p $HOME/1_accuweather/curr_cond)
if [[ $wind_direction == "S" ]]; then
cp $HOME/1_accuweather/vents/"02.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "South" ]]; then
cp $HOME/1_accuweatherI/vents/"02.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "SSW" ]]; then
cp $HOME/1_accuweather/vents/"03.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "SW" ]]; then
cp $HOME/1_accuweather/vents/"04.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "WSW" ]]; then
cp $HOME/1_accuweather/vents/"05.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "W" ]]; then
cp $HOME/1_accuweather/vents/"06.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "West" ]]; then
cp $HOME/1_accuweather/vents/"06.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "WNW" ]]; then
cp $HOME/1_accuweather/vents/"07.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "NW" ]]; then
cp $HOME/1_accuweather/vents/"08.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "NNW" ]]; then
cp $HOME/1_accuweather/vents/"09.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "N" ]]; then
cp $HOMME/1_accuweather/vents/"10.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "North" ]]; then
cp $HOME/1_accuweather/vents/"10.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "NNE" ]]; then
cp $HOME/1_accuweather/vents/"11.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "NE" ]]; then
cp $HOME/1_accuweather/vents/"12.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "ENE" ]]; then
cp $HOME/1_accuweather/vents/"13.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "E" ]]; then
cp $HOME/1_accuweather/vents/"14.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "East" ]]; then
cp $HOME/1_accuweather/vents/"14.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "ESE" ]]; then
cp $HOME/1_accuweather/vents/"15.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "SE" ]]; then
cp $HOME/1_accuweather/vents/"16.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "SSE" ]]; then
cp $HOME/1_accuweather/vents/"17.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "Variable" ]]; then
cp $HOME/1_accuweather/vents/"00.png" $HOME/1_accuweather/Wind1.png
fi
#Next 5 days
if [[ -s $HOME/1_accuweather/last_days_raw ]]; then
sed -i '/.feed-controls/,/.feed-tabs/!d' $HOME/1_accuweather/last_days_raw
egrep -i 'href="#"|icon i-|large-temp|small-temp|temp-label|"cond"' $HOME/1_accuweather/last_days_raw > $HOME/1_accuweather/last_days
sed -i -e '/icon/s/-. //g' -e 's/^.*icon i-//g' -e 's/^.*large-temp">//g' -e 's/^.*small-temp">///g' -e 's/^.*"cond">//g' -e 's/^.*href="#">//g' -e 's/^.*"temp-label tonight ">//g' $HOME/1_accuweather/last_days
sed -i -e 's/°.*$//g' -e 's/</a>.*$//g' -e 's/</span>.*$//g' -e 's/">.*$//g' $HOME/1_accuweather/last_days
sed -i -e 's/Mon/Monday/' -e 's/Tue/Tuesday/' -e 's/Wed/Wednesday/' -e 's/Thu/Thursday/' -e 's/Fri/Friday/' -e 's/Sat/Saturday/' -e 's/Sun/Sunday/' $HOME/1_accuweather/last_days
for (( i=2; i<=22; i+=5 ))
do
image=$(sed -n "${i}"p $HOME/1_accuweather/last_days)
echo $(test_image $image) >> $HOME/1_accuweather/last_days
done
j=6
for (( i=2; i<=22; i+=5 ))
do
cp $HOME/1_accuweather/Forecast_Images_2016/$(sed -n ${i}p $HOME/1_accuweather/last_days).png $HOME/1_accuweather/$j.png
((j++))
done
fi
if [[ $1 != -h && $2 != -h ]]; then
kill -CONT $(pidof conky)
fi
fi
###################################################
#HOURLY FORECAST: -h passed as 1rst or 2nd argument
###################################################
if [[ $1 == -h || $2 == -h ]]; then
#Hourly: First 8h
if [[ $1 != -f && $2 != -f ]]; then
kill -STOP $(pidof conky)
fi
killall wget
rm $HOME/1_accuweather/hourly_*.png
hourly_addr1="$(echo $address|sed 's/weather-forecast.*$//')"hourly-weather-forecast/"$last_number"
wget -O $HOME/1_accuweather/hourly_raw1 "$hourly_addr1"
if [[ -s $HOME/1_accuweather/hourly_raw1 ]]; then
sed -i '/detail-tab-buttons.detail-tab-buttons/,/<div class="hourly-table">/!d' $HOME/1_accuweather/hourly_raw1
egrep -i 'hour=|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday|pm</div>|am</div>|icon-weather icon i-|<th>Forecast|<span>.*</span>|<th>Temp|<th>Realfeel|<th>Wind|<th>Rain|<th>Snow|<th>Ice|<th>UV Index|<th>Cloud Cover|<th>Humidity|<th>Dew Point' $HOME/1_accuweather/hourly_raw1 > $HOME/1_accuweather/hourly1
sed -i -e 's/^[ t]*//g' -e 's/^.*<div>//g' -e 's/^.*<span>//g' -e 's/^.*<th>//g' -e 's/^.*icon i-//g' -e 's/-s">.*$//g' -e 's/</div>.*$//g' -e 's/&#.*$//g' -e 's/</span>.*$//g' -e 's/</th>.*$//g' -e 's/^.*href="//g' -e 's/" class=.*$//g' $HOME/1_accuweather/hourly1
sed -i -e 's/Monday/Mon/' -e 's/Tuesday/Tue/' -e 's/Wednesday/Wed/' -e 's/Thursday/Thu/' -e 's/Friday/Fri/' -e 's/Saturday/Sat/' -e 's/Sunday/Sun/' -e 's/r//g' $HOME/1_accuweather/hourly1
j=1
for (( i=4; i<=18; i+=2 ))
do
cp $HOME/1_accuweather/Forecast_Images_2016/$(sed -n ${i}p $HOME/1_accuweather/hourly1).png $HOME/1_accuweather/hourly_$j.png
((j++))
done
fi
#Hourly: Next 8h
hourly_addr2=$(sed -n 1p $HOME/1_accuweather/hourly1)
wget -O $HOME/1_accuweather/hourly_raw2 "$hourly_addr2"
if [[ -s $HOME/1_accuweather/hourly_raw2 ]]; then
sed -i '/detail-tab-buttons.detail-tab-buttons/,/<div class="hourly-table">/!d' $HOME/1_accuweather/hourly_raw2
egrep -i 'hour=|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday|pm</div>|am</div>|icon-weather icon i-|<th>Forecast|<span>.*</span>|<th>Temp|<th>Realfeel|<th>Wind|<th>Rain|<th>Snow|<th>Ice|<th>UV Index|<th>Cloud Cover|<th>Humidity|<th>Dew Point' $HOME/1_accuweather/hourly_raw2 > $HOME/1_accuweather/hourly2
sed -i -e 's/^[ t]*//g' -e 's/^.*<div>//g' -e 's/^.*<span>//g' -e 's/^.*<th>//g' -e 's/^.*icon i-//g' -e 's/-s">.*$//g' -e 's/</div>.*$//g' -e 's/&#.*$//g' -e 's/</span>.*$//g' -e 's/</th>.*$//g' -e 's/^.*href="//g' -e 's/" class=.*$//g' $HOME/1_accuweather/hourly2
sed -i 1d $HOME/1_accuweather/hourly2
sed -i -e 's/Monday/Mon/' -e 's/Tuesday/Tue/' -e 's/Wednesday/Wed/' -e 's/Thursday/Thu/' -e 's/Friday/Fri/' -e 's/Saturday/Sat/' -e 's/Sunday/Sun/' -e 's/r//g' $HOME/1_accuweather/hourly2
j=9
for (( i=4; i<=18; i+=2 ))
do
cp $HOME/1_accuweather/Forecast_Images_2016/$(sed -n ${i}p $HOME/1_accuweather/hourly2).png $HOME/1_accuweather/hourly_$j.png
((j++))
done
fi
# Full info, next 16h - altogether16 file
rm $HOME/1_accuweather/altogether16
#TIME
echo "${color ffe595}TIME${goto 100}" > $HOME/1_accuweather/altogether16
sed -i "1s/$/$(sed -n 2p $HOME/1_accuweather/hourly1):$(sed -n 3p $HOME/1_accuweather/hourly1)/" $HOME/1_accuweather/altogether16
jump_to=160
for (( i=5; i<=17; i+=2 ))
do
time=$(sed -n ${i}p $HOME/1_accuweather/hourly1)
sed -i "1s/$/${goto $jump_to}$time/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
sed -i "1s/$/${goto 580}$(sed -n 2p $HOME/1_accuweather/hourly2):$(sed -n 3p $HOME/1_accuweather/hourly2)/" $HOME/1_accuweather/altogether16
jump_to=640
for (( i=5; i<=17; i+=2 ))
do
time=$(sed -n ${i}p $HOME/1_accuweather/hourly2)
sed -i "1s/$/${goto $jump_to}$time/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
sed -i '1s/$/n/' $HOME/1_accuweather/altogether16
#IMAGES
jump_to=85
for (( i=1; i<=16; i+=1 ))
do
sed -i "2s/$/${image $HOME/1_accuweather/hourly_$i.png -s 36x36 -p $jump_to,49}/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
sed -i '1s/$/nn/' $HOME/1_accuweather/altogether16
#FORECAST
echo "FORECAST${color}" >> $HOME/1_accuweather/altogether16
jump_to=100
for (( i=20; i<=27; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly1|awk '{print $1}'|cut -c1-8)
sed -i "5s/$/${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
for (( i=20; i<=27; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly2|awk '{print $1}'|cut -c1-8)
sed -i "5s/$/${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
sed -i '5s/$/n/' $HOME/1_accuweather/altogether16
jump_to=100
for (( i=20; i<=27; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly1|awk '{print $2}'|cut -c1-8)
sed -i "6s/$/${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
for (( i=20; i<=27; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly2|awk '{print $2}'|cut -c1-8)
sed -i "6s/$/${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
#TEMPERATURE
echo "${color ffe595}${goto 100}${hr 1}" >> $HOME/1_accuweather/altogether16
echo "Température${color}" >> $HOME/1_accuweather/altogether16
jump_to=100
for (( i=29; i<=36; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly1)
sed -i "8s/$/${goto $jump_to}$messg°/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
for (( i=29; i<=36; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly2)
sed -i "8s/$/${goto $jump_to}$messg°/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
#REAL FEEL
echo "${color ffe595}${goto 100}${hr 1}" >> $HOME/1_accuweather/altogether16
echo "Ressentie${color}" >> $HOME/1_accuweather/altogether16
jump_to=100
for (( i=38; i<=45; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly1)
sed -i "10s/$/${goto $jump_to}$messg°/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
for (( i=38; i<=45; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly2)
sed -i "10s/$/${goto $jump_to}$messg°/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
#WIND
echo "${color ffe595}${goto 100}${hr 1}" >> $HOME/1_accuweather/altogether16
echo "Vent${color}" >> $HOME/1_accuweather/altogether16
jump_to=100
for (( i=47; i<=54; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly1)
sed -i "12s/$/${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
for (( i=47; i<=54; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly2)
sed -i "12s/$/${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
#RAIN
echo "${color ffe595}${goto 100}${hr 1}" >> $HOME/1_accuweather/altogether16
echo "Pluie${color}" >> $HOME/1_accuweather/altogether16
jump_to=100
for (( i=64; i<=71; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly1)
sed -i "14s/$/${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
for (( i=64; i<=71; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly2)
sed -i "14s/$/${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
#SNOW
echo "${color ffe595}${goto 100}${hr 1}" >> $HOME/1_accuweather/altogether16
echo "Neige${color}" >> $HOME/1_accuweather/altogether16
jump_to=100
for (( i=73; i<=80; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly1)
sed -i "16s/$/${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
for (( i=73; i<=80; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly2)
sed -i "16s/$/${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
#ICE
echo "${color ffe595}${goto 100}${hr 1}" >> $HOME/1_accuweather/altogether16
echo "Geler${color}" >> $HOME/1_accuweather/altogether16
jump_to=100
for (( i=82; i<=89; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly1)
sed -i "18s/$/${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
for (( i=82; i<=89; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly2)
sed -i "18s/$/${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
#UV INDEX
echo "${color ffe595}${goto 100}${hr 1}" >> $HOME/1_accuweather/altogether16
echo "Index UV${color}" >> $HOME/1_accuweather/altogether16
jump_to=100
for (( i=99; i<=106; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly1)
sed -i "20s/$/${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
for (( i=99; i<=106; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly2)
sed -i "20s/$/${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
#CLOUD COVER
echo "${color ffe595}${goto 100}${hr 1}" >> $HOME/1_accuweather/altogether16
echo "Couv.Nuag.${color}" >> $HOME/1_accuweather/altogether16
jump_to=100
for (( i=108; i<=115; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly1)
sed -i "22s/$/${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
for (( i=108; i<=115; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly2)
sed -i "22s/$/${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
#HUMIDITY
echo "${color ffe595}${goto 100}${hr 1}" >> $HOME/1_accuweather/altogether16
echo "Humidité${color}" >> $HOME/1_accuweather/altogether16
jump_to=100
for (( i=117; i<=124; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly1)
sed -i "24s/$/${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
for (( i=117; i<=124; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly2)
sed -i "24s/$/${goto $jump_to}$messg/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
#DEW POINT
echo "${color ffe595}${goto 100}${hr 1}" >> $HOME/1_accuweather/altogether16
echo "Point de ros.${color}" >> $HOME/1_accuweather/altogether16
jump_to=100
for (( i=126; i<=133; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly1)
sed -i "26s/$/${goto $jump_to}$messg°/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
for (( i=126; i<=133; i+=1 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly2)
sed -i "26s/$/${goto $jump_to}$messg°/" $HOME/1_accuweather/altogether16
((jump_to+=60))
done
## English to French
cp $HOME/1_accuweather/curr_cond $HOME/1_accuweather/curr_cond-fr
if [[ -s $HOME/1_accuweather/curr_cond-fr ]]; then
sed -i -e 's/Clear/Dégagé/' $HOME/1_accuweather/curr_cond-fr
sed -i -e 's/Cloudy/Nuageux/' $HOME/1_accuweather/curr_cond-fr
sed -i -e 's/Mostly cloudy/Peu nuageux/' $HOME/1_accuweather/curr_cond-fr
sed -i -e 's/Partly sunny/Ensoleillé/' $HOME/1_accuweather/curr_cond-fr
sed -i -e 's/Sunny/Ensoleillé/' $HOME/1_accuweather/curr_cond-fr
fi
#### Alerts ####
wget -O $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
sed -i -e 's/NW/NO/g' -e 's/WNW/ONO/g' -e 's/NNW/NNO/g' -e 's/W/O/g' -e 's/SSW/SSO/g' -e 's/SW/SO/g' -e 's/WSW/OSO/g' -e 's/W/O/g' /$HOME/1_accuweather/curr_cond-fr
kill -CONT $(pidof conky)
fi

Édité par loutch Le 18/09/2016 à 10h34
Linuxmint 24.02 Xia - Mageia 9 xfce et plasma sur ssd sur HP Pavilion g7
Xubuntu 18.04 LTS et 24.04 en xfce sur ASUS Rog STRIX
Xubuntu 18.04 LTS et 24.04 en xfce sur ASUS Rog STRIX
Fafoulous Membre non connecté
-
- Voir le profil du membre Fafoulous
- Inscrit le : 27/07/2011
- Groupes :
tu crois que tu pourrai mettre a jour dans le wiki aussi ?
config : hp omen 17" i5 6400, Dual boot dd 1To win10 + SSD 120Go Mageia 9 KDE,
dual graphique intel hd & nvidia gtx 960m
dual graphique intel hd & nvidia gtx 960m
loutch Membre non connecté
-
- Voir le profil du membre loutch
- Inscrit le : 07/07/2010
- Groupes :
Linuxmint 24.02 Xia - Mageia 9 xfce et plasma sur ssd sur HP Pavilion g7
Xubuntu 18.04 LTS et 24.04 en xfce sur ASUS Rog STRIX
Xubuntu 18.04 LTS et 24.04 en xfce sur ASUS Rog STRIX
loutch Membre non connecté
-
- Voir le profil du membre loutch
- Inscrit le : 07/07/2010
- Groupes :
Linuxmint 24.02 Xia - Mageia 9 xfce et plasma sur ssd sur HP Pavilion g7
Xubuntu 18.04 LTS et 24.04 en xfce sur ASUS Rog STRIX
Xubuntu 18.04 LTS et 24.04 en xfce sur ASUS Rog STRIX
loutch Membre non connecté
-
- Voir le profil du membre loutch
- Inscrit le : 07/07/2010
- Groupes :
.gif)
Dernière mise à jour pour le conky accuweather avec 3 thèmes différents.
Ne pas oublier de changer l'adresse dans le script 1_accuweather ainsi que d'installer les polices .
le pack est ici
https://drive.google.com/file/d/0Bygxc3zi7pV-c0xHTlpnbF92cFU/view?usp=sharing
et cela donne ceci:
Linuxmint 24.02 Xia - Mageia 9 xfce et plasma sur ssd sur HP Pavilion g7
Xubuntu 18.04 LTS et 24.04 en xfce sur ASUS Rog STRIX
Xubuntu 18.04 LTS et 24.04 en xfce sur ASUS Rog STRIX
loutch Membre non connecté
-
- Voir le profil du membre loutch
- Inscrit le : 07/07/2010
- Groupes :
.gif)
conky-clic audacious
le conkyrc :
Code TEXT :
# -- Conky settings -- #
background no
update_interval 0.5
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
double_buffer yes
no_buffers yes
text_buffer_size 1024
imlib_cache_size 15000
max_specials 10000
max_user_text 15000
diskio_avg_samples 2
format_human_readable yes
border_inner_margin 0
border_outer_margin 0
# -- Window specifications -- #
own_window yes
own_window_type normal
own_window_transparent no
own_window_argb_visual yes
own_window_argb_value 0
own_window_hints undecorate,skip_taskbar,skip_pager,below
own_window_title media
minimum_size 412 106
maximum_width 412
alignment top_right
gap_x 00
gap_y 775
# -- Graphics settings -- #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
border_width 0
default_bar_size 216 2
# -- Text settings -- #
use_xft yes
xftfont GE Inspira:size=8
color1 92deee
color2 668c95
color3 d0fefb
color4 2f3d40
color5 ff6c4a
lua_load ~/.conky/audacious/scripts/button_script.lua
lua_draw_hook_pre get_mouse {"media","/tmp/xdo"}
lua_startup_hook start_xdo /tmp/xdo
#lua_shutdown_hook stop_xdo
lua_load ~/.conky/audacious/scripts/lua_functions.lua
lua_load ~/.conky/lua/image.lua
template1 ${lua rc_button {btype=3,bname="button1",blx_off=115,bly_off=76,bw_off=12,bh_off=12}}
template2 ${lua rc_button {btype=3,bname="button2",blx_off=115,bly_off=46,bw_off=12,bh_off=12}}
template3 ${lua rc_button {btype=3,bname="button3",blx_off=100,bly_off=55,bw_off=12,bh_off=12}}
template4 ${lua rc_button {btype=3,bname="button4",blx_off=115,bly_off=55,bw_off=12,bh_off=12}}
template5 ${lua rc_button {btype=3,bname="button5",blx_off=130,bly_off=55,bw_off=12,bh_off=12}}
TEXT
${execi 5 ~/.conky/audacious/scripts/cover.sh}
${lua fDrawImage ~/.conky/audacious/audacious.png 24 14 68 70}${lua fDrawImage ~/.conky/audacious/case.png 0 0 410 108}${voffset -20}
${goto 160}${execi 3 audtool current-song-tuple-data artist}
${goto 160}${execi 3 audtool current-song-tuple-data title}
${goto 160}${execi 3 audtool current-song-tuple-data album}
${goto 160}${execi 1 audtool current-song-output-length} ${goto 358}${execi 1 audtool current-song-length}
${goto 160}${color ff6c4a}${execbar expr 100 * $(audtool --current-song-output-length-seconds) / $(audtool --current-song-length-seconds)}$color
${goto 160}${color 777777}${execbar echo 0}
${if_match ${template1}==0}
${else}${lua fDrawImage ~/.conky/audacious/images/Orange.png 360 5 35 35}${exec audacious --pause}
${endif}
${if_match ${template2}==0}
${else}${lua fDrawImage ~/.conky/audacious/images/Orange.png 360 5 35 35}${exec audacious --stop}
${endif}
${if_match ${template3}==0}
${else}${lua fDrawImage ~/.conky/audacious/images/Orange.png 360 5 35 35}${exec audacious --rew}
${endif}
${if_match ${template4}==0}
${else}${lua fDrawImage ~/.conky/audacious/images/Orange.png 360 5 35 35}${exec audacious --play}
${endif}
${if_match ${template5}==0}
${else}${lua fDrawImage ~/.conky/audacious/images/Orange.png 360 5 35 35}${exec audacious --fwd}
${endif}
${lua fDrawImage ~/.conky/audacious/pause.png 115 59 13 13}
${lua fDrawImage ~/.conky/audacious/stop.png 115 31 13 13}
${lua fDrawImage ~/.conky/audacious/rew.png 100 45 13 13}
${lua fDrawImage ~/.conky/audacious/play.png 115 45 13 13}
${lua fDrawImage ~/.conky/audacious/fwd.png 130 45 13 13}
${voffset -250}le pack ici
https://drive.google.com/open?id=0Bygxc3zi7pV-U3lGaUZ1U05DRUU
vidéo ici:
https://drive.google.com/open?id=0Bygxc3zi7pV-VXJWQ1hVYUJYa0U
Édité par loutch Le 14/01/2017 à 11h35
Linuxmint 24.02 Xia - Mageia 9 xfce et plasma sur ssd sur HP Pavilion g7
Xubuntu 18.04 LTS et 24.04 en xfce sur ASUS Rog STRIX
Xubuntu 18.04 LTS et 24.04 en xfce sur ASUS Rog STRIX
funix Membre non connecté
-
- Voir le profil du membre funix
- Inscrit le : 17/12/2012
- Site internet
- Groupes :
je me suis mis au conky également avec lua avec accuweather, et c'est là que ça se gâte. Tout semble marcher avec 1_accuweather et le conkyrc qui va bien sauf qu'au final tout s'affiche sauf les images qui sont bien dans le répertoire de 1_accuweather. Je n'ai pas d'erreur au lancement de conky mais j'en déduis que j'ai un problème avec la fonction fDrawImage du fichier ~/lua/image.lua et là honnêtement je suis vraiment sec. Je serai ravi si quelqu'un voyait où ça cloche.
mon conkyr
Caché :
conky.config = {
background = true,
use_xft = true,
font = 'GE Inspira:size=9',
xftalpha = 1,
update_interval = 1.0,
total_run_times = 0,
own_window = true,
own_window_transparent = true,
own_window_argb_visual = true,
own_window_type = 'desktop',
--own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
double_buffer = false,
minimum_width = 450, minimum_height = 440,
maximum_width = 455,
text_buffer_size = 2048,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
default_color = 'white',--dbc38f
default_outline_color = 'black',
alignment = 'top_left',
gap_x = 300,
gap_y = 60,
no_buffers = true,
uppercase = false,
cpu_avg_samples = 2,
override_utf8_locale = true,
-- Fonctionne uniquement avec les polices Fixes
--use_spacer yes
imlib_cache_size = 0,
uppercase = false,
color7 = '#6495ee',
color9 = 'red',
lua_load = '~/.conky/lua/image.lua',
};
conky.text = [[
${execi 600 bash $HOME/1_accuweather/1_accuweather -f2017 -h2017}
#### Premier cadre ####
${voffset -11}${font LED_mono :style=Medium:size=55}${color 434343}${goto 32}${time %H}${goto 144}${time %M}${font LED_mono :size=20:style=Medium}${color 808080}${goto 235}${time %S}$font
#### Date ####
${voffset -30}${color white}${font GE Inspira:size=9}${alignc -108}${time %A, %d %B %Y}$font
### vent ####
${voffset 6}
${goto 310}Vent : ${execi 90 sed -n '5p' $HOME/1_accuweather/curr_cond-fr}
${goto 310}Vitesse : ${execi 90 sed -n '6p' $HOME/1_accuweather/curr_cond}
${goto 310}Pression : ${execi 90 sed -n '8p' $HOME/1_accuweather/curr_cond}
${goto 310}Indice UV : ${execi 90 sed -n '9p' $HOME/1_accuweather/curr_cond} $font
#### Ville ####
${voffset -34}${font GE Inspira:size=14:}Brest : ${font} ${execi 90 sed -n '4p' $HOME/1_accuweather/curr_cond-fr}
Temp.: ${execi 90 sed -n '2p' $HOME/1_accuweather/curr_cond} °C Res.: ${execi 90 sed -n '3p' $HOME/1_accuweather/curr_cond} °C
Alerte : ${execi 600 sed -n '1p' $HOME/1_accuweather/Alertes}
#### Deuxième cadre ####
##### Affichage temperatures #####
${voffset 2}
${goto 20}${color7}${execi 90 sed -n '9p' $HOME/1_accuweather/first_days}°${color}/${color9}${execi 90 sed -n '8p' $HOME/1_accuweather/first_days}°${color}
${goto 95}${color7}${execi 90 sed -n '14p' $HOME/1_accuweather/first_days}°${color}/${color9}${execi 90 sed -n '13p' $HOME/1_accuweather/first_days}°${color}
${goto 170}${color7}${execi 90 sed -n '19p' $HOME/1_accuweather/first_days}°${color}/${color9}${execi 90 sed -n '18p' $HOME/1_accuweather/first_days}°${color}
${goto 245}${color7}${execi 90 sed -n '24p' $HOME/1_accuweather/first_days}°${color}/${color9}${execi 90 sed -n '23p' $HOME/1_accuweather/first_days}°${color}
${goto 320}${color7}${execi 90 sed -n '4p' $HOME/1_accuweather/last_days}°${color}/${color9}${execi 90 sed -n '3p' $HOME/1_accuweather/last_days}°${color}
${goto 400}${color7}${execi 90 sed -n '9p' $HOME/1_accuweather/last_days}°${color}/${color9}${execi 90 sed -n '8p' $HOME/1_accuweather/last_days}°${color}
#### Affichage date ####
${voffset 40}
${goto 20}${execi 3600 echo `date --date="1 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="1 day" | awk '{print $2}'`}
${goto 95}${execi 3600 echo `date --date="2 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="2 day" | awk '{print $2}'`}
${goto 170}${execi 3600 echo `date --date="3 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="3 day" | awk '{print $2}'`}
${goto 245}${execi 3600 echo `date --date="4 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="4 day" | awk '{print $2}'`}
${goto 320}${execi 3600 echo `date --date="5 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="5 day" | awk '{print $2}'`}
${goto 400}${execi 3600 echo `date --date="6 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="6 day" | awk '{print $2}'`}
### Troisième cadre ####
${voffset 10}
${goto 25}LEVER/COUCHER DU SOLEIL ${goto 270}LEVER/COUCHER DE LUNE
Lever du soleil : ${execi 3600 sed -n '23p' $HOME/1_accuweather/curr_cond} ${goto 250}Lever de lune : ${execi 3600 sed -n '25p' $HOME/1_accuweather/curr_cond}
Coucher de soleil : ${execi 3600 sed -n '24p' $HOME/1_accuweather/curr_cond} ${goto 250}Coucher de lune : ${execi 3600 sed -n '26p' $HOME/1_accuweather/curr_cond}
Durée : ${execi 3600 sed -n '16p' $HOME/1_accuweather/curr_cond} ${goto 250}Durée : ${execi 3600 sed -n '20p' $HOME/1_accuweather/curr_cond}
#### Quatrième cadre ####
#### Affichage des cadres utilisés dans le conky ####
${voffset -935}
#### premier cadre ####
${lua fDrawImage $HOME/1_accuweather/fond/base.png 0 40 450 110}
${lua fDrawImage $HOME/1_accuweather/fond/flip_bg.png 22 3 100 100}
${lua fDrawImage $HOME/1_accuweather/fond/flip_bg.png 132 3 100 100}
#### Second cadre ####
${lua fDrawImage $HOME/1_accuweather/fond/base.png 0 155 450 85}
#### Troisième cadre ####
${lua fDrawImage $HOME/1_accuweather/fond/base.png 0 250 450 85}
#### Quatrième cadre ####
#### icônes premier cadre ####
${lua fDrawImage $HOME/1_accuweather/forecast_2017/forecast_0.png 220 70 70 70}
${lua fDrawImage $HOME/1_accuweather/forecast_2017/wind_0.png 395 60 50 50}
#### icônes Second cadre ####
${lua fDrawImage $HOME/1_accuweather/forecast_2017/forecast_2.png 10 170 50 50}
${lua fDrawImage $HOME/1_accuweather/forecast_2017/forecast_3.png 90 170 50 50}
${lua fDrawImage $HOME/1_accuweather/forecast_2017/forecast_4.png 165 170 50 50}
${lua fDrawImage $HOME/1_accuweather/forecast_2017/forecast_5.png 235 170 50 50}
${lua fDrawImage $HOME/1_accuweather/forecast_2017/forecast_6.png 310 170 50 50}
${lua fDrawImage $HOME/1_accuweather/forecast_2017/forecast_7.png 390 170 50 50}
#### icônes troisième cadre ####
${lua fDrawImage $HOME/1_accuweather/Forecast_Images_2017/1.png 140 265 60 60}
${lua fDrawImage $HOME/1_accuweather/Forecast_Images_2017/33.png 370 265 60 60}
${voffset - 800}
]];
conky.config = {
background = true,
use_xft = true,
font = 'GE Inspira:size=9',
xftalpha = 1,
update_interval = 1.0,
total_run_times = 0,
own_window = true,
own_window_transparent = true,
own_window_argb_visual = true,
own_window_type = 'desktop',
--own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
double_buffer = false,
minimum_width = 450, minimum_height = 440,
maximum_width = 455,
text_buffer_size = 2048,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
default_color = 'white',--dbc38f
default_outline_color = 'black',
alignment = 'top_left',
gap_x = 300,
gap_y = 60,
no_buffers = true,
uppercase = false,
cpu_avg_samples = 2,
override_utf8_locale = true,
-- Fonctionne uniquement avec les polices Fixes
--use_spacer yes
imlib_cache_size = 0,
uppercase = false,
color7 = '#6495ee',
color9 = 'red',
lua_load = '~/.conky/lua/image.lua',
};
conky.text = [[
${execi 600 bash $HOME/1_accuweather/1_accuweather -f2017 -h2017}
#### Premier cadre ####
${voffset -11}${font LED_mono :style=Medium:size=55}${color 434343}${goto 32}${time %H}${goto 144}${time %M}${font LED_mono :size=20:style=Medium}${color 808080}${goto 235}${time %S}$font
#### Date ####
${voffset -30}${color white}${font GE Inspira:size=9}${alignc -108}${time %A, %d %B %Y}$font
### vent ####
${voffset 6}
${goto 310}Vent : ${execi 90 sed -n '5p' $HOME/1_accuweather/curr_cond-fr}
${goto 310}Vitesse : ${execi 90 sed -n '6p' $HOME/1_accuweather/curr_cond}
${goto 310}Pression : ${execi 90 sed -n '8p' $HOME/1_accuweather/curr_cond}
${goto 310}Indice UV : ${execi 90 sed -n '9p' $HOME/1_accuweather/curr_cond} $font
#### Ville ####
${voffset -34}${font GE Inspira:size=14:}Brest : ${font} ${execi 90 sed -n '4p' $HOME/1_accuweather/curr_cond-fr}
Temp.: ${execi 90 sed -n '2p' $HOME/1_accuweather/curr_cond} °C Res.: ${execi 90 sed -n '3p' $HOME/1_accuweather/curr_cond} °C
Alerte : ${execi 600 sed -n '1p' $HOME/1_accuweather/Alertes}
#### Deuxième cadre ####
##### Affichage temperatures #####
${voffset 2}
${goto 20}${color7}${execi 90 sed -n '9p' $HOME/1_accuweather/first_days}°${color}/${color9}${execi 90 sed -n '8p' $HOME/1_accuweather/first_days}°${color}
${goto 95}${color7}${execi 90 sed -n '14p' $HOME/1_accuweather/first_days}°${color}/${color9}${execi 90 sed -n '13p' $HOME/1_accuweather/first_days}°${color}
${goto 170}${color7}${execi 90 sed -n '19p' $HOME/1_accuweather/first_days}°${color}/${color9}${execi 90 sed -n '18p' $HOME/1_accuweather/first_days}°${color}
${goto 245}${color7}${execi 90 sed -n '24p' $HOME/1_accuweather/first_days}°${color}/${color9}${execi 90 sed -n '23p' $HOME/1_accuweather/first_days}°${color}
${goto 320}${color7}${execi 90 sed -n '4p' $HOME/1_accuweather/last_days}°${color}/${color9}${execi 90 sed -n '3p' $HOME/1_accuweather/last_days}°${color}
${goto 400}${color7}${execi 90 sed -n '9p' $HOME/1_accuweather/last_days}°${color}/${color9}${execi 90 sed -n '8p' $HOME/1_accuweather/last_days}°${color}
#### Affichage date ####
${voffset 40}
${goto 20}${execi 3600 echo `date --date="1 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="1 day" | awk '{print $2}'`}
${goto 95}${execi 3600 echo `date --date="2 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="2 day" | awk '{print $2}'`}
${goto 170}${execi 3600 echo `date --date="3 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="3 day" | awk '{print $2}'`}
${goto 245}${execi 3600 echo `date --date="4 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="4 day" | awk '{print $2}'`}
${goto 320}${execi 3600 echo `date --date="5 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="5 day" | awk '{print $2}'`}
${goto 400}${execi 3600 echo `date --date="6 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="6 day" | awk '{print $2}'`}
### Troisième cadre ####
${voffset 10}
${goto 25}LEVER/COUCHER DU SOLEIL ${goto 270}LEVER/COUCHER DE LUNE
Lever du soleil : ${execi 3600 sed -n '23p' $HOME/1_accuweather/curr_cond} ${goto 250}Lever de lune : ${execi 3600 sed -n '25p' $HOME/1_accuweather/curr_cond}
Coucher de soleil : ${execi 3600 sed -n '24p' $HOME/1_accuweather/curr_cond} ${goto 250}Coucher de lune : ${execi 3600 sed -n '26p' $HOME/1_accuweather/curr_cond}
Durée : ${execi 3600 sed -n '16p' $HOME/1_accuweather/curr_cond} ${goto 250}Durée : ${execi 3600 sed -n '20p' $HOME/1_accuweather/curr_cond}
#### Quatrième cadre ####
#### Affichage des cadres utilisés dans le conky ####
${voffset -935}
#### premier cadre ####
${lua fDrawImage $HOME/1_accuweather/fond/base.png 0 40 450 110}
${lua fDrawImage $HOME/1_accuweather/fond/flip_bg.png 22 3 100 100}
${lua fDrawImage $HOME/1_accuweather/fond/flip_bg.png 132 3 100 100}
#### Second cadre ####
${lua fDrawImage $HOME/1_accuweather/fond/base.png 0 155 450 85}
#### Troisième cadre ####
${lua fDrawImage $HOME/1_accuweather/fond/base.png 0 250 450 85}
#### Quatrième cadre ####
#### icônes premier cadre ####
${lua fDrawImage $HOME/1_accuweather/forecast_2017/forecast_0.png 220 70 70 70}
${lua fDrawImage $HOME/1_accuweather/forecast_2017/wind_0.png 395 60 50 50}
#### icônes Second cadre ####
${lua fDrawImage $HOME/1_accuweather/forecast_2017/forecast_2.png 10 170 50 50}
${lua fDrawImage $HOME/1_accuweather/forecast_2017/forecast_3.png 90 170 50 50}
${lua fDrawImage $HOME/1_accuweather/forecast_2017/forecast_4.png 165 170 50 50}
${lua fDrawImage $HOME/1_accuweather/forecast_2017/forecast_5.png 235 170 50 50}
${lua fDrawImage $HOME/1_accuweather/forecast_2017/forecast_6.png 310 170 50 50}
${lua fDrawImage $HOME/1_accuweather/forecast_2017/forecast_7.png 390 170 50 50}
#### icônes troisième cadre ####
${lua fDrawImage $HOME/1_accuweather/Forecast_Images_2017/1.png 140 265 60 60}
${lua fDrawImage $HOME/1_accuweather/Forecast_Images_2017/33.png 370 265 60 60}
${voffset - 800}
]];
mon ~/lua/image.lua
Caché :
-- De 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
-- De 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
Édité par funix Le 14/01/2017 à 23h17
loutch Membre non connecté
-
- Voir le profil du membre loutch
- Inscrit le : 07/07/2010
- Groupes :
.gif)
Conky 1.10 c'est pas de la tarte .
Je ne pense pas que ce soit le lua qui pose problème mais conky en version 1.10 qui merdoit un peu ,beaucoup de conkystador remette la version 1.09 surtout pour du lua .
Pourquoi 2017 il me semble que dans le pack du 21-10-2016 c'est :
-2015
-2016
-weatherfont
Édité par loutch Le 15/01/2017 à 09h03
Linuxmint 24.02 Xia - Mageia 9 xfce et plasma sur ssd sur HP Pavilion g7
Xubuntu 18.04 LTS et 24.04 en xfce sur ASUS Rog STRIX
Xubuntu 18.04 LTS et 24.04 en xfce sur ASUS Rog STRIX
funix Membre non connecté
-
- Voir le profil du membre funix
- Inscrit le : 17/12/2012
- Site internet
- Groupes :
Je ne pense pas que ce soit le lua qui pose problème mais conky en version 1.10 qui merdoit un peu ,beaucoup de conkystador remette la version 1.09 surtout pour du lua .
Je vais encore faire quelques tests, mais effectivement une alternative est de revenir à la 1.09
Citation:
Pourquoi 2017 il me semble que dans le pack du 21-10-2016 c'est :
-2015
-2016
-weatherfont
euh, parce qu'on est en 2017... ou alors j'ai rien compris au fonctionnement de tout ça, je pensais naïvement que ça correspondait aux années, à quoi ça sert d'avoir 2015 ? en tout cas ça a l'air de fonctionner avec mes modifs (sans les images) !
loutch Membre non connecté
-
- Voir le profil du membre loutch
- Inscrit le : 07/07/2010
- Groupes :
Avec conky 1.10 1 lua passe (s'il n'a pas d'erreurs ) avec deux c'est plus la galère.
2015 correspond aux anciennes images
2016 correspond aux nouvelles (depuis le changement du site)
weatherfont sont des images blanches .
Donc ton conky ne trouve pas les images 2017 vu qu'elle n'existe pas .
remplace 2017 par 2015 puis par 2016 et garde celui avec les images qui te plaise .
Il faudra surement modifier les placement vu que dans les deux packs les images n'ont pas la même taille.
@+
Édité par loutch Le 15/01/2017 à 10h02
Linuxmint 24.02 Xia - Mageia 9 xfce et plasma sur ssd sur HP Pavilion g7
Xubuntu 18.04 LTS et 24.04 en xfce sur ASUS Rog STRIX
Xubuntu 18.04 LTS et 24.04 en xfce sur ASUS Rog STRIX
funix Membre non connecté
-
- Voir le profil du membre funix
- Inscrit le : 17/12/2012
- Site internet
- Groupes :
Re
Avec conky 1.10 1 lua passe (s'il n'a pas d'erreurs ) avec deux c'est plus la galère.
2015 correspond aux anciennes images
2016 correspond aux nouvelles (depuis le changement du site)
weatherfont sont des images blanches .
Donc ton conky ne trouve pas les images 2017 vu qu'elle n'existe pas .
Avec conky 1.10 1 lua passe (s'il n'a pas d'erreurs ) avec deux c'est plus la galère.
2015 correspond aux anciennes images
2016 correspond aux nouvelles (depuis le changement du site)
weatherfont sont des images blanches .
Donc ton conky ne trouve pas les images 2017 vu qu'elle n'existe pas .
A oui d'accord, j'avais rien compris en somme, du coup je me suis embêté à modifier le script, mais au final j'avais bien les images dans mon répertoire 2017, finalement j'ai downgradé en 1.9 et ça marche !
Par contre c'est le bazar au niveau placement, j'ai du modifier pas mal de paramètres de positionnement dans le conkyrc
Caché:
background yes
double_buffer yes
update_interval 1
total_run_times 0
no_buffers yes
use_xft yes
xftfont GE Inspira:size=9
override_utf8_locale yes
xftalpha 1
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
minimum_size 450 440
maximum_width 455
text_buffer_size 2048
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color white
default_outline_color black
alignment top_left
gap_x 1000
gap_y 60
uppercase no
cpu_avg_samples 2
#Fonctionne uniquement avec les polices Fixes
#use_spacer yes
imlib_cache_size 0
color7 6495ee
color9 red
lua_load ~/.conky/lua/image.lua
TEXT
${execi 600 bash $HOME/1_accuweather/1_accuweather -f2017 -h2017}
#### Premier cadre ####
${voffset -11}${font LED_mono :style=Medium:size=55}${color 434343}${goto 32}${time %H}${goto 144}${time %M}${font LED_mono :size=20:style=Medium}${color 808080}${goto 235}${time %S}$font
#### Date ####
${voffset -30}${color white}${font GE Inspira:size=9}${alignc -108}${time %A, %d %B %Y}$font
### vent ####
${voffset 6}
${goto 310}Vent : ${execi 90 sed -n '5p' $HOME/1_accuweather/curr_cond-fr}
${goto 310}Vitesse : ${execi 90 sed -n '6p' $HOME/1_accuweather/curr_cond}
${goto 310}Pression : ${execi 90 sed -n '8p' $HOME/1_accuweather/curr_cond}
${goto 310}Indice UV : ${execi 90 sed -n '9p' $HOME/1_accuweather/curr_cond} $font
#### Ville ####
${voffset -34}${font GE Inspira:size=14:}Brest : ${font} ${execi 90 sed -n '4p' $HOME/1_accuweather/curr_cond-fr}
Temp.: ${execi 90 sed -n '2p' $HOME/1_accuweather/curr_cond} °C Res.: ${execi 90 sed -n '3p' $HOME/1_accuweather/curr_cond} °C
Alerte : ${execi 600 sed -n '1p' $HOME/1_accuweather/Alertes}
#### Deuxième cadre ####
##### Affichage temperatures #####
${voffset 2}
${goto 20}${color7}${execi 90 sed -n '9p' $HOME/1_accuweather/first_days}°${color}/${color9}${execi 90 sed -n '8p' $HOME/1_accuweather/first_days}°${color}\
${goto 95}${color7}${execi 90 sed -n '14p' $HOME/1_accuweather/first_days}°${color}/${color9}${execi 90 sed -n '13p' $HOME/1_accuweather/first_days}°${color}\
${goto 170}${color7}${execi 90 sed -n '19p' $HOME/1_accuweather/first_days}°${color}/${color9}${execi 90 sed -n '18p' $HOME/1_accuweather/first_days}°${color}\
${goto 245}${color7}${execi 90 sed -n '24p' $HOME/1_accuweather/first_days}°${color}/${color9}${execi 90 sed -n '23p' $HOME/1_accuweather/first_days}°${color}\
${goto 320}${color7}${execi 90 sed -n '4p' $HOME/1_accuweather/last_days}°${color}/${color9}${execi 90 sed -n '3p' $HOME/1_accuweather/last_days}°${color}\
${goto 400}${color7}${execi 90 sed -n '9p' $HOME/1_accuweather/last_days}°${color}/${color9}${execi 90 sed -n '8p' $HOME/1_accuweather/last_days}°${color}
#### Affichage date ####
${voffset 40}
${goto 20}${execi 3600 echo `date --date="1 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="1 day" | awk '{print $2}'`}\
${goto 95}${execi 3600 echo `date --date="2 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="2 day" | awk '{print $2}'`}\
${goto 170}${execi 3600 echo `date --date="3 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="3 day" | awk '{print $2}'`}\
${goto 245}${execi 3600 echo `date --date="4 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="4 day" | awk '{print $2}'`}\
${goto 320}${execi 3600 echo `date --date="5 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="5 day" | awk '{print $2}'`}\
${goto 400}${execi 3600 echo `date --date="6 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="6 day" | awk '{print $2}'`}
### Troisième cadre ####
${voffset 10}
${goto 25}LEVER/COUCHER DU SOLEIL ${goto 270}LEVER/COUCHER DE LUNE
Lever du soleil : ${execi 3600 sed -n '23p' $HOME/1_accuweather/curr_cond} ${goto 250}Lever de lune : ${execi 3600 sed -n '25p' $HOME/1_accuweather/curr_cond}
Coucher de soleil : ${execi 3600 sed -n '24p' $HOME/1_accuweather/curr_cond} ${goto 250}Coucher de lune : ${execi 3600 sed -n '26p' $HOME/1_accuweather/curr_cond}
Durée : ${execi 3600 sed -n '16p' $HOME/1_accuweather/curr_cond} ${goto 250}Durée : ${execi 3600 sed -n '20p' $HOME/1_accuweather/curr_cond}
#### Quatrième cadre ####
#### Affichage des cadres utilisés dans le conky ####
${voffset -935}
#### premier cadre ####
${lua fDrawImage $HOME/1_accuweather/fond/base.png 0 60 450 110}
${lua fDrawImage $HOME/1_accuweather/fond/flip_bg.png 28 3 100 100}
${lua fDrawImage $HOME/1_accuweather/fond/flip_bg.png 138 3 100 100}
#### Second cadre ####
${lua fDrawImage $HOME/1_accuweather/fond/base.png 0 183 450 85}
#### Troisième cadre ####
${lua fDrawImage $HOME/1_accuweather/fond/base.png 0 280 450 85}
#### Quatrième cadre ####
#${lua fDrawImage $HOME/1_accuweather/fond/base.png 0 345 450 85}
#### icônes premier cadre ####
${lua fDrawImage $HOME/1_accuweather/forecast_2017/forecast_0.png 220 90 70 70}\
${lua fDrawImage $HOME/1_accuweather/forecast_2017/wind_0.png 395 70 50 50}
#### icônes Second cadre ####
${lua fDrawImage $HOME/1_accuweather/forecast_2017/forecast_2.png 10 200 50 50}\
${lua fDrawImage $HOME/1_accuweather/forecast_2017/forecast_3.png 90 200 50 50}\
${lua fDrawImage $HOME/1_accuweather/forecast_2017/forecast_4.png 165 200 50 50}\
${lua fDrawImage $HOME/1_accuweather/forecast_2017/forecast_5.png 235 200 50 50}\
${lua fDrawImage $HOME/1_accuweather/forecast_2017/forecast_6.png 310 200 50 50}\
${lua fDrawImage $HOME/1_accuweather/forecast_2017/forecast_7.png 390 200 50 50}
#### icônes troisième cadre ####
${lua fDrawImage $HOME/1_accuweather/Forecast_Images_2017/1.png 160 300 60 60}\
${lua fDrawImage $HOME/1_accuweather/Forecast_Images_2017/33.png 390 300 60 60}
${voffset -850}
maintenant j'essaye de comprendre pour mes conkys disparaissent (j'ai l'impression que c'est quand je clique sur le fond d'écran), les process continuent pourtant à tourner
loutch Membre non connecté
-
- Voir le profil du membre loutch
- Inscrit le : 07/07/2010
- Groupes :
Y'a pas un paramètre dans l'affichage ou un truc du genre ?
Suis toujours en M5 KDE donc peut pas être d'une grande utilité.
@+
Linuxmint 24.02 Xia - Mageia 9 xfce et plasma sur ssd sur HP Pavilion g7
Xubuntu 18.04 LTS et 24.04 en xfce sur ASUS Rog STRIX
Xubuntu 18.04 LTS et 24.04 en xfce sur ASUS Rog STRIX
funix Membre non connecté
-
- Voir le profil du membre funix
- Inscrit le : 17/12/2012
- Site internet
- Groupes :
Bon par contre j'ai toujours mes conkys qui disparaissent quand je clique sur le fond d'écran, ils réapparaissent parfois par magie, j'ai du mal à comprendre.
Répondre
Vous n'êtes pas autorisé à écrire dans cette catégorie
