Συντονιστής: adem1




${color 07E517}WEATHER - MEGARA ${hr 2}$color
${execi 300 curl -s "http://weather.yahooapis.com/forecastrss?w=961265&u=c" -o ~/.cache/weather.xml}\
${execi 300 cp -f ~/.conky-weather/icons/weather-photos-2/$(grep "yweather:condition" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*").png ~/.cache/weather.png}${image ~/.cache/weather.png -p 25,30 -s 228x110}\
#${image ~/.conky-weather/assets/Elementary/Compact/border.png -p 1,24 -s 230x111}\
#${image ~/.conky-weather/assets/Elementary/Compact/bottom-bg-2.png -p 1,140 -s 230x110}\
#${image ~/.conky-weather/assets/Elementary/Compact/shadow-2.png -p 1,20 -s 242x231}\
\
# The name of the days #
\
${color2}${voffset 149}${alignc 77}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1' | tr '[a-z]' '[A-Z]'}
${color2}${voffset -17}${alignc}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2' | tr '[a-z]' '[A-Z]'}
${color2}${voffset -17}${alignc -77}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3' | tr '[a-z]' '[A-Z]'}
\
# Temperatures #
\
${color2}${voffset 53}${alignc 77}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°/${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°
${color2}${voffset -17}${alignc}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°/${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°
${color2}${voffset -17}${alignc -77}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°/${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°
\
# Conditions #
\
${color4}${font Droid Sans :size=36}${goto 36}${voffset -196}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "temp=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}°${font}\
${color4}${font Droid Sans :size=12}${goto 46}${voffset 33}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${font}\
${font Droid Sans :size=8}${color4}${alignr 52}${voffset -73}${execi 300 grep "yweather:atmosphere" ~/.cache/weather.xml | grep -o "pressure=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"} ${execi 300 grep "yweather:units" ~/.cache/weather.xml | grep -o "pressure=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${font}
${font Droid Sans :size=8}${color4}${alignr 52}${voffset 7}${execi 300 grep "yweather:atmosphere" ~/.cache/weather.xml | grep -o "humidity=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"} %${color}${font}
${font Droid Sans :size=8}${color4}${alignr 52}${voffset 5}${execi 300 grep "yweather:wind" ~/.cache/weather.xml | grep -o "speed=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"} ${execi 300 grep "yweather:units" ~/.cache/weather.xml | grep -o "speed=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${color}${font}\
\
# Various images including the forecast icons #
\
${image ~/.conky-weather/assets/Elementary/Compact/pressure.png -p 224,35 -s 16x16}\
${image ~/.conky-weather/assets/Elementary/Compact/humidity.png -p 224,61 -s 16x16}\
${image ~/.conky-weather/assets/Elementary/Compact/wind-2.png -p 224,87 -s 16x16}\
${execi 300 cp -f ~/.conky-weather/icons/weather-icons-dark4/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1').png ~/.cache/weather-1.png}${image ~/.cache/weather-1.png -p 38,177 -s 32x32}\
${execi 300 cp -f ~/.conky-weather/icons/weather-icons-dark4/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2').png ~/.cache/weather-2.png}${image ~/.cache/weather-2.png -p 115,177 -s 32x32}\
${execi 300 cp -f ~/.conky-weather/icons/weather-icons-dark4/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3').png ~/.cache/weather-3.png}${image ~/.cache/weather-3.png -p 193,177 -s 32x32}${font}\


{image ~/.cache/weather.png -p 650,30 -s 228x110}\

#${image ~/.conky-weather/assets/Elementary/Compact/border.png -p 1,24 -s 230x111}\
#${image ~/.conky-weather/assets/Elementary/Compact/bottom-bg-2.png -p 1,140 -s 230x110}\
#${image ~/.conky-weather/assets/Elementary/Compact/shadow-2.png -p 1,20 -s 242x231}\



Επιστροφή στο Περιβάλλον Εργασίας / Εμφάνιση / Εφέ / Customization