From 372536d39848c28a718d6a68bf13dcc10712a05b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Wed, 14 Dec 2022 22:31:53 +0000 Subject: [PATCH] display lat, lon on the weather bar --- nixos/i3/openweathermap-fullfeatured.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/nixos/i3/openweathermap-fullfeatured.sh b/nixos/i3/openweathermap-fullfeatured.sh index fbc46f0f..60da058c 100755 --- a/nixos/i3/openweathermap-fullfeatured.sh +++ b/nixos/i3/openweathermap-fullfeatured.sh @@ -84,16 +84,15 @@ if [ -n "$current" ] && [ -n "$forecast" ]; then forecast_feels=$(echo "$forecast" | $JQ ".list[].main.feels_like" | $CUT -d "." -f 1) forecast_icon=$(echo "$forecast" | $JQ -r ".list[].weather[0].icon") - if [ "$current_temp" -gt "$forecast_temp" ]; then trend="getting colder" - echo "$current_text $(get_icon "$current_icon") $current_temp($current_feels)$SYMBOL => $(get_icon "$forecast_icon") $forecast_temp($forecast_feels)$SYMBOL" + echo "[$location_lat, $location_lon]: $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 "$current_text $(get_icon "$current_icon") $current_temp($current_feels)$SYMBOL => $(get_icon "$forecast_icon") $forecast_temp($forecast_feels)$SYMBOL" + echo "[$location_lat, $location_lon]: $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 "$current_text $(get_icon "$current_icon") $current_temp($current_feels)$SYMBOL" + echo "[$location_lat, $location_lon]: $current_text $(get_icon "$current_icon") $current_temp($current_feels)$SYMBOL" fi fi