From 8ccdd94d0b162ecec8baf825adaecf657aa3e47c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sat, 3 Sep 2022 23:11:54 +0100 Subject: [PATCH] more compact weather line --- nixos/i3/openweathermap-fullfeatured.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/i3/openweathermap-fullfeatured.sh b/nixos/i3/openweathermap-fullfeatured.sh index 10319348..fbc46f0f 100755 --- a/nixos/i3/openweathermap-fullfeatured.sh +++ b/nixos/i3/openweathermap-fullfeatured.sh @@ -87,13 +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" + echo "$current_text $(get_icon "$current_icon") $current_temp($current_feels)$SYMBOL => $(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" + echo "$current_text $(get_icon "$current_icon") $current_temp($current_feels)$SYMBOL => $(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" + echo "$current_text $(get_icon "$current_icon") $current_temp($current_feels)$SYMBOL" fi fi