update conky config

parent cc89e3bf
......@@ -146,40 +146,40 @@ conky.text = [[
${texeci 500 bash $HOME/.conky/Accuweather_conky_script/accuweather -f2015}\
${texeci 500 bash $HOME/.conky/Moongiant_conky_script/moongiant}
${voffset -7}\
${goto 70}${color1}${texeci 600 sed -n '63p' $HOME/.conky/Accuweather_conky_script/daily_forecast|tr a-z A-Z}\
${goto 195}${texeci 600 sed -n '103p' $HOME/.conky/Accuweather_conky_script/daily_forecast|tr a-z A-Z}\
${goto 325}${texeci 600 sed -n '143p' $HOME/.conky/Accuweather_conky_script/daily_forecast|tr a-z A-Z}\
${goto 435}${texeci 600 sed -n '183p' $HOME/.conky/Accuweather_conky_script/daily_forecast|tr a-z A-Z}
${goto 70}${color1}${texeci 600 sed -n '8p' $HOME/.conky/Accuweather_conky_script/daily_forecast|tr a-z A-Z}\
${goto 195}${texeci 600 sed -n '15p' $HOME/.conky/Accuweather_conky_script/daily_forecast|tr a-z A-Z}\
${goto 325}${texeci 600 sed -n '22p' $HOME/.conky/Accuweather_conky_script/daily_forecast|tr a-z A-Z}\
${goto 435}${texeci 600 sed -n '29p' $HOME/.conky/Accuweather_conky_script/daily_forecast|tr a-z A-Z}
${image $HOME/.conky/Accuweather_conky_script/forecast_2015/forecast_2.png -p 30,20 -s 90x54}\
${image $HOME/.conky/Accuweather_conky_script/forecast_2015/forecast_3.png -p 150,20 -s 90x54}\
${image $HOME/.conky/Accuweather_conky_script/forecast_2015/forecast_4.png -p 270,20 -s 90x54}\
${image $HOME/.conky/Accuweather_conky_script/forecast_2015/forecast_5.png -p 390,20 -s 90x54}
${color0}${goto 130}${texeci 600 sed -n '47p' $HOME/.conky/Accuweather_conky_script/daily_forecast}°\
${goto 250}${texeci 600 sed -n '87p' $HOME/.conky/Accuweather_conky_script/daily_forecast}°\
${goto 370}${texeci 600 sed -n '127p' $HOME/.conky/Accuweather_conky_script/daily_forecast}°\
${goto 490}${texeci 600 sed -n '167p' $HOME/.conky/Accuweather_conky_script/daily_forecast}°
${goto 130}${texeci 600 sed -n '68p' $HOME/.conky/Accuweather_conky_script/daily_forecast}°\
${goto 250}${texeci 600 sed -n '108p' $HOME/.conky/Accuweather_conky_script/daily_forecast}°\
${goto 370}${texeci 600 sed -n '148p' $HOME/.conky/Accuweather_conky_script/daily_forecast}°\
${goto 490}${texeci 600 sed -n '188p' $HOME/.conky/Accuweather_conky_script/daily_forecast}°
${goto 70}${color1}${texeci 600 sed -n '223p' $HOME/.conky/Accuweather_conky_script/daily_forecast|tr a-z A-Z}\
${goto 195}${texeci 600 sed -n '263p' $HOME/.conky/Accuweather_conky_script/daily_forecast|tr a-z A-Z}\
${goto 325}${texeci 600 sed -n '303p' $HOME/.conky/Accuweather_conky_script/daily_forecast|tr a-z A-Z}\
${goto 435}${texeci 600 sed -n '343p' $HOME/.conky/Accuweather_conky_script/daily_forecast|tr a-z A-Z}
${color0}${goto 130}${texeci 600 sed -n '11p' $HOME/.conky/Accuweather_conky_script/daily_forecast}°\
${goto 250}${texeci 600 sed -n '18p' $HOME/.conky/Accuweather_conky_script/daily_forecast}°\
${goto 370}${texeci 600 sed -n '25p' $HOME/.conky/Accuweather_conky_script/daily_forecast}°\
${goto 490}${texeci 600 sed -n '32p' $HOME/.conky/Accuweather_conky_script/daily_forecast}°
${goto 130}${texeci 600 sed -n '12p' $HOME/.conky/Accuweather_conky_script/daily_forecast}°\
${goto 250}${texeci 600 sed -n '19p' $HOME/.conky/Accuweather_conky_script/daily_forecast}°\
${goto 370}${texeci 600 sed -n '26p' $HOME/.conky/Accuweather_conky_script/daily_forecast}°\
${goto 490}${texeci 600 sed -n '33p' $HOME/.conky/Accuweather_conky_script/daily_forecast}°
${goto 70}${color1}${texeci 600 sed -n '36p' $HOME/.conky/Accuweather_conky_script/daily_forecast|tr a-z A-Z}\
${goto 195}${texeci 600 sed -n '43p' $HOME/.conky/Accuweather_conky_script/daily_forecast|tr a-z A-Z}\
${goto 325}${texeci 600 sed -n '50p' $HOME/.conky/Accuweather_conky_script/daily_forecast|tr a-z A-Z}\
${goto 435}${texeci 600 sed -n '57p' $HOME/.conky/Accuweather_conky_script/daily_forecast|tr a-z A-Z}
${image $HOME/.conky/Accuweather_conky_script/forecast_2015/forecast_6.png -p 30,99 -s 90x54}\
${image $HOME/.conky/Accuweather_conky_script/forecast_2015/forecast_7.png -p 150,99 -s 90x54}\
${image $HOME/.conky/Accuweather_conky_script/forecast_2015/forecast_8.png -p 270,99 -s 90x54}\
${image $HOME/.conky/Accuweather_conky_script/forecast_2015/forecast_9.png -p 390,99 -s 90x54}
${color0}${goto 130}${texeci 600 sed -n '207p' $HOME/.conky/Accuweather_conky_script/daily_forecast}°\
${goto 250}${texeci 600 sed -n '247p' $HOME/.conky/Accuweather_conky_script/daily_forecast}°\
${goto 370}${texeci 600 sed -n '287p' $HOME/.conky/Accuweather_conky_script/daily_forecast}°\
${goto 490}${texeci 600 sed -n '327p' $HOME/.conky/Accuweather_conky_script/daily_forecast}°
${goto 130}${texeci 600 sed -n '228p' $HOME/.conky/Accuweather_conky_script/daily_forecast}°\
${goto 250}${texeci 600 sed -n '268p' $HOME/.conky/Accuweather_conky_script/daily_forecast}°\
${goto 370}${texeci 600 sed -n '308p' $HOME/.conky/Accuweather_conky_script/daily_forecast}°\
${goto 490}${texeci 600 sed -n '348p' $HOME/.conky/Accuweather_conky_script/daily_forecast}°
${color0}${goto 130}${texeci 600 sed -n '39p' $HOME/.conky/Accuweather_conky_script/daily_forecast}°\
${goto 250}${texeci 600 sed -n '46p' $HOME/.conky/Accuweather_conky_script/daily_forecast}°\
${goto 370}${texeci 600 sed -n '53p' $HOME/.conky/Accuweather_conky_script/daily_forecast}°\
${goto 490}${texeci 600 sed -n '60p' $HOME/.conky/Accuweather_conky_script/daily_forecast}°
${goto 130}${texeci 600 sed -n '40p' $HOME/.conky/Accuweather_conky_script/daily_forecast}°\
${goto 250}${texeci 600 sed -n '47p' $HOME/.conky/Accuweather_conky_script/daily_forecast}°\
${goto 370}${texeci 600 sed -n '54p' $HOME/.conky/Accuweather_conky_script/daily_forecast}°\
${goto 490}${texeci 600 sed -n '61p' $HOME/.conky/Accuweather_conky_script/daily_forecast}°
${voffset -4}${color1}${hr 1}
......
......@@ -331,25 +331,25 @@ if [[ $forecast0 == 1 || $forecast2015 == 1 || $forecast2016 == 1 ]]; then
sed '/conditions-card card panel conditions/,/class="card-button "/!d' $CONKY_DIR/Accuweather_conky_script/curr_cond_raw > $CONKY_DIR/Accuweather_conky_script/curr_cond_temp
sed -i -e '/\.svg"\|&#xB0\|phrase\|: /!d' -e '/style="transform: /d' $CONKY_DIR/Accuweather_conky_script/curr_cond_temp
sed -i -e 's/^.*weathericons\///' -e 's/\.svg.*$//' -e 's/&#xB0.*$//g' -e 's/^[ ,\t]*//g' -e 's/^.*phrase">//' -e 's/<\/div>//' -e 's/: /\n/g' $CONKY_DIR/Accuweather_conky_script/curr_cond_temp
sed -i -e '20s/\(.*\) /\1\n/' $CONKY_DIR/Accuweather_conky_script/curr_cond_temp
sed -n 1,4p $CONKY_DIR/Accuweather_conky_script/curr_cond_temp > $CONKY_DIR/Accuweather_conky_script/curr_cond
sed -n 21p $CONKY_DIR/Accuweather_conky_script/curr_cond_temp >> $CONKY_DIR/Accuweather_conky_script/curr_cond
sed -i -e '20s/\(.*\) /\1\n/' -e 's/ at /\n/g' $CONKY_DIR/Accuweather_conky_script/curr_cond_temp
sed -n 1,3p $CONKY_DIR/Accuweather_conky_script/curr_cond_temp > $CONKY_DIR/Accuweather_conky_script/curr_cond
sed -n 5p $CONKY_DIR/Accuweather_conky_script/curr_cond_temp >> $CONKY_DIR/Accuweather_conky_script/curr_cond
sed -n 9,10p $CONKY_DIR/Accuweather_conky_script/curr_cond_temp >> $CONKY_DIR/Accuweather_conky_script/curr_cond
sed -n 14p $CONKY_DIR/Accuweather_conky_script/curr_cond_temp >> $CONKY_DIR/Accuweather_conky_script/curr_cond
sed -n 18p $CONKY_DIR/Accuweather_conky_script/curr_cond_temp >> $CONKY_DIR/Accuweather_conky_script/curr_cond
sed -n 7p $CONKY_DIR/Accuweather_conky_script/curr_cond_temp >> $CONKY_DIR/Accuweather_conky_script/curr_cond
sed -n 20p $CONKY_DIR/Accuweather_conky_script/curr_cond_temp >> $CONKY_DIR/Accuweather_conky_script/curr_cond
sed -n 6p $CONKY_DIR/Accuweather_conky_script/curr_cond_temp >> $CONKY_DIR/Accuweather_conky_script/curr_cond
sed -n 12p $CONKY_DIR/Accuweather_conky_script/curr_cond_temp >> $CONKY_DIR/Accuweather_conky_script/curr_cond
sed -n 8p $CONKY_DIR/Accuweather_conky_script/curr_cond_temp >> $CONKY_DIR/Accuweather_conky_script/curr_cond
sed -n 10p $CONKY_DIR/Accuweather_conky_script/curr_cond_temp >> $CONKY_DIR/Accuweather_conky_script/curr_cond
echo 'EMPTY LINE FOR COMPATIBILITY WITH THE OLD CONKYRC FILES' >> $CONKY_DIR/Accuweather_conky_script/curr_cond
sed -n 14p $CONKY_DIR/Accuweather_conky_script/curr_cond_temp >> $CONKY_DIR/Accuweather_conky_script/curr_cond
sed -n 16p $CONKY_DIR/Accuweather_conky_script/curr_cond_temp >> $CONKY_DIR/Accuweather_conky_script/curr_cond
sed -n 22p $CONKY_DIR/Accuweather_conky_script/curr_cond_temp >> $CONKY_DIR/Accuweather_conky_script/curr_cond
moonrise=1
moonset=1
sed '/<div class="panel-1"><div class="sunrise">/,/<div class="temp-history">/!d' $CONKY_DIR/Accuweather_conky_script/curr_cond_raw > $CONKY_DIR/Accuweather_conky_script/curr_cond_temp
if (( $(grep '>Moonrise:<' /$CONKY_DIR/Accuweather_conky_script/curr_cond_temp|wc -l) == 0 )); then
if (( $(grep '"section-header">Moonrise' /$CONKY_DIR/Accuweather_conky_script/curr_cond_temp|wc -l) == 0 )); then
moonrise=0
fi
if (( $(grep '>Moonset:<' /$CONKY_DIR/Accuweather_conky_script/curr_cond_temp|wc -l) == 0 )); then
if (( $(grep '"section-header">Moonset' /$CONKY_DIR/Accuweather_conky_script/curr_cond_temp|wc -l) == 0 )); then
moonset=0
fi
sed -i '/:[0-9][0-9]/!d' $CONKY_DIR/Accuweather_conky_script/curr_cond_temp
......@@ -404,33 +404,17 @@ if [[ $forecast0 == 1 || $forecast2015 == 1 || $forecast2016 == 1 ]]; then
#Daily forecast
if [[ -s $CONKY_DIR/Accuweather_conky_script/daily_forecast ]]; then
sed -i '/var dailyForecast/!d' $CONKY_DIR/Accuweather_conky_script/daily_forecast
sed -i -e 's/var dailyForecast = \[//' -e 's/","\|":"/\n/g' -e 's/icon":/icon\n/g' -e 's/,"phrase/\nphrase/g' -e 's/temp":/temp\n/g' -e 's/},"dow/\ndow/g' -e 's/":{"dTemp/\ndTemp/g' $CONKY_DIR/Accuweather_conky_script/daily_forecast
sed -i -e 's/}}.*,"date/\ndate/' -e 's/}}];//g' -e '1s/^.*$/date/' -e 's/°//g' $CONKY_DIR/Accuweather_conky_script/daily_forecast
sed -i '601,$d' $CONKY_DIR/Accuweather_conky_script/daily_forecast
for (( i=9; i<=569; i+=40 ))
do
image=$(sed -n "${i}"p $CONKY_DIR/Accuweather_conky_script/daily_forecast)
echo $(test_image $image) >> $CONKY_DIR/Accuweather_conky_script/daily_forecast
done
for (( i=30; i<=590; i+=40 ))
sed -i '/forecast-list-card forecast-card today/,/card-button centered nav-card next/!d' $CONKY_DIR/Accuweather_conky_script/daily_forecast
sed -i -e 's/^.*weathericons\///g' -e 's/\.svg.*$//g' -e 's/^.*high"> //g' -e 's/^.*low"> \/ //g' -e 's/&#xB0;.*$//g' -e 's/^.*<p>//g' -e 's/<\/p>.*$//g' -e '/<\|>\|class\|href/d' -e 's/^ \|\t*//g' -e '/^$/d' -e '/Precip/d' -e 's/Sun$/Sunday/g' -e 's/Mon$/Monday/g' -e 's/Tue$/Tuesday/g' -e 's/Wed$/Wednesday/g' -e 's/Thu$/Thursday/g' -e 's/Fri$/Friday/g' -e 's/Sat$/Saturday/g' $CONKY_DIR/Accuweather_conky_script/daily_forecast
sed -i '106,$d' $CONKY_DIR/Accuweather_conky_script/daily_forecast
for (( i=3; i<=101; i+=7 ))
do
image=$(sed -n "${i}"p $CONKY_DIR/Accuweather_conky_script/daily_forecast)
echo $(test_image $image) >> $CONKY_DIR/Accuweather_conky_script/daily_forecast
done
if [[ $forecast0 == 0 ]]; then
j=1
for (( i=9; i<=569; i+=40 ))
do
if [[ $forecast2015 == 1 ]]; then
cp $CONKY_DIR/Accuweather_conky_script/Forecast_Images_2015/$(sed -n ${i}p $CONKY_DIR/Accuweather_conky_script/daily_forecast).png $CONKY_DIR/Accuweather_conky_script/forecast_2015/forecast_$j.png
fi
if [[ $forecast2016 == 1 ]]; then
cp $CONKY_DIR/Accuweather_conky_script/Forecast_Images_2016/$(sed -n ${i}p $CONKY_DIR/Accuweather_conky_script/daily_forecast).png $CONKY_DIR/Accuweather_conky_script/forecast_2016/forecast_$j.png
fi
((j++))
done
for (( i=30; i<=590; i+=40 ))
for (( i=3; i<=101; i+=7 ))
do
if [[ $forecast2015 == 1 ]]; then
cp $CONKY_DIR/Accuweather_conky_script/Forecast_Images_2015/$(sed -n ${i}p $CONKY_DIR/Accuweather_conky_script/daily_forecast).png $CONKY_DIR/Accuweather_conky_script/forecast_2015/forecast_$j.png
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment