From 496b0e21421ee061bc31f0881ae672ac7a81c999 Mon Sep 17 00:00:00 2001 From: Penelope Gwen Date: Wed, 24 Apr 2024 14:00:02 -0600 Subject: [PATCH] New backup 2024-04-24 14:00:02 --- de/home/.config/sway/scripts/global_shortcuts/weather | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/de/home/.config/sway/scripts/global_shortcuts/weather b/de/home/.config/sway/scripts/global_shortcuts/weather index aa9faf7..1abbb24 100755 --- a/de/home/.config/sway/scripts/global_shortcuts/weather +++ b/de/home/.config/sway/scripts/global_shortcuts/weather @@ -7,8 +7,9 @@ current_f=$( jq -r '.current_condition.[].FeelsLikeF' <<< ${jweather} ) high_f=$( jq -r '.weather.[0].maxtempF' <<< ${jweather} ) low_f=$( jq -r '.weather.[0].mintempF' <<< ${jweather} ) weather_desc=$( jq -r '.current_condition.[].weatherDesc.[].value' <<< ${jweather} ) -for d in 1..5;do - date -d $( jq -r ".weather.[$d].date" <<< ${jweather} ) +'%A' +for d in {1..2};do + date -d $( jq -r --argjson d ${d} '.weather.[$d].date' <<< ${jweather} ) +'%A' +# date -d $( jq -r ".weather.[$d].date" <<< ${jweather} ) done notify-send "Current: ${current_f}°F ${weather_desc}