From c191f416be50b7334f6aeefe085bfe819ddaf9ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sat, 16 Jul 2022 19:37:25 +0100 Subject: [PATCH] do not show temp for later if same --- nixos/i3/openweathermap-fullfeatured.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/i3/openweathermap-fullfeatured.sh b/nixos/i3/openweathermap-fullfeatured.sh index abd8c65f..10319348 100755 --- a/nixos/i3/openweathermap-fullfeatured.sh +++ b/nixos/i3/openweathermap-fullfeatured.sh @@ -87,11 +87,13 @@ if [ -n "$current" ] && [ -n "$forecast" ]; then if [ "$current_temp" -gt "$forecast_temp" ]; then trend="getting colder" + echo "now $(get_icon "$current_icon") $current_text $current_temp($current_feels)$SYMBOL, later $(get_icon "$forecast_icon") $forecast_temp($forecast_feels)$SYMBOL" elif [ "$forecast_temp" -gt "$current_temp" ]; then trend="getting warmer" + echo "now $(get_icon "$current_icon") $current_text $current_temp($current_feels)$SYMBOL, later $(get_icon "$forecast_icon") $forecast_temp($forecast_feels)$SYMBOL" else trend="stable weather" + echo "now $(get_icon "$current_icon") $current_text $current_temp($current_feels)$SYMBOL, the same later" fi - echo "now $(get_icon "$current_icon") $current_text $current_temp($current_feels)$SYMBOL, later $(get_icon "$forecast_icon") $forecast_temp($forecast_feels)$SYMBOL" fi