From 600ef666a4cd8e531b8827156e5830e5f9032c93 Mon Sep 17 00:00:00 2001 From: Shaun Reed Date: Sat, 5 Oct 2019 22:18:36 -0400 Subject: [PATCH] Update sunset / sunrise symbols --- bin/.local/bin/i3scripts/weathermap | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/.local/bin/i3scripts/weathermap b/bin/.local/bin/i3scripts/weathermap index 583e50d..df5af32 100755 --- a/bin/.local/bin/i3scripts/weathermap +++ b/bin/.local/bin/i3scripts/weathermap @@ -85,11 +85,11 @@ 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"