From 3233439d88547822be4e42a76e505b366062461d Mon Sep 17 00:00:00 2001 From: Shaun Reed Date: Wed, 19 Feb 2020 15:54:50 +0000 Subject: [PATCH] Update weathermap script for i3blocks display --- .local/bin/i3scripts/weathermap | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.local/bin/i3scripts/weathermap b/.local/bin/i3scripts/weathermap index 2ff240d..45810ea 100755 --- a/.local/bin/i3scripts/weathermap +++ b/.local/bin/i3scripts/weathermap @@ -85,12 +85,14 @@ if [ -n "$current" ] && [ -n "$forecast" ]; then now=$(date +%s) if [ "$sun_rise" -gt "$now" ]; then - daytime=" $(get_duration "$((sun_rise-now))")" # Sun rise + daytime=" $(get_duration "$((sun_rise-now))")" # Sun rise elif [ "$sun_set" -gt "$now" ]; then - daytime=" $(get_duration "$((sun_set-now))")" # Sun set + daytime=" $(get_duration "$((sun_set-now))")" # Sun set else - daytime=" $(get_duration "$((sun_rise-now))")" # Unknown + daytime=" $(get_duration "$((sun_rise-now))")" # Unknown fi - echo "$(get_icon "$current_icon") $current_temp$SYMBOL $trend $(get_icon "$forecast_icon") $forecast_temp$SYMBOL $daytime" + + echo "$(get_icon "$current_icon") $current_temp$SYMBOL $trend $(get_icon "$forecast_icon") $forecast_temp$SYMBOL $daytime" + #echo "$(get_icon "$current_icon") $current_temp$SYMBOL $trend $(get_icon "$forecast_icon") $forecast_temp$SYMBOL $daytime" fi