commit e313f7e8d0ec2c1042a23e2b769b08823caf0c68
parent 52bbf3d7ac2f4ab047edcbd71706df18bfcd1703
Author: Frederic Cambus <fred@statdns.com>
Date: Tue, 26 Jul 2016 13:02:40 +0200
Merge pull request #97 from pianojockl/master
Added possibility to change "forecast" text
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/ansiweather b/ansiweather
@@ -156,7 +156,7 @@ humidity_text=$(get_config "humidity_text" || echo "Humidity")
pressure_text=$(get_config "pressure_text" || echo "Pressure")
sunrise_text=$(get_config "sunrise_text" || echo "Sunrise")
sunset_text=$(get_config "sunset_text" || echo "Sunset")
-
+forecast_text=$(get_config "forecast_text" || echo "forecast")
###[ Unicode Symbols for icons ]###############################################
@@ -360,7 +360,7 @@ get_icon() {
if [ "$forecast" != 0 ]
then
- output="$background$text $city forecast $text$delimiter "
+ output="$background$text $city $forecast_text $text$delimiter "
i=0
while [ $i -lt "$forecast" ]
diff --git a/ansiweatherrc.example b/ansiweatherrc.example
@@ -23,6 +23,7 @@ humidity_text:Humidity
pressure_text:Pressure
sunrise_text:Sunrise
sunset_text:Sunset
+forecast_text:forecast
# Icons
sun:\033[33;1m\xe2\x98\x80