From c3ec84379c568470dfc5b045cb2887f78fced57e Mon Sep 17 00:00:00 2001 From: giuse17ita Date: Wed, 21 Jan 2026 17:08:13 +0100 Subject: [PATCH] FIX: weather incorrect param usage this close issue #267 Boolean parameters in tmux.conf were incorrectly treated as strings, causing unexpected behavior. City names with multiple words (e.g., "Los Angeles") were being truncated. --- scripts/dracula.sh | 2 +- scripts/weather_wrapper.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/dracula.sh b/scripts/dracula.sh index 0f11e664..176389eb 100755 --- a/scripts/dracula.sh +++ b/scripts/dracula.sh @@ -314,7 +314,7 @@ main() { elif [ $plugin = "weather" ]; then IFS=' ' read -r -a colors <<< $(get_tmux_option "@dracula-weather-colors" "orange dark_gray") - script="#($current_dir/weather_wrapper.sh $show_fahrenheit $show_location '$fixed_location' $weather_hide_errors)" + script="#($current_dir/weather_wrapper.sh $show_fahrenheit $show_location '"$fixed_location"' $weather_hide_errors)" elif [ $plugin = "time" ]; then IFS=' ' read -r -a colors <<< $(get_tmux_option "@dracula-time-colors" "dark_purple white") diff --git a/scripts/weather_wrapper.sh b/scripts/weather_wrapper.sh index ccf8c3d8..506d4e0d 100755 --- a/scripts/weather_wrapper.sh +++ b/scripts/weather_wrapper.sh @@ -28,7 +28,7 @@ function main() { if (((_now - _last) > INTERVAL)); then # Run weather script here - "${_current_dir}/weather.sh" "$_show_fahrenheit" "$_show_location" "$_location" "$_hide_errors" >"${DATAFILE}" + "${_current_dir}/weather.sh" $_show_fahrenheit $_show_location "$_location" $_hide_errors >"${DATAFILE}" printf '%s' "$_now" >"${LAST_EXEC_FILE}" fi