New backup 2024-04-24 13:15:02
This commit is contained in:
parent
b6925a1c94
commit
6be3499f5d
1 changed files with 13 additions and 0 deletions
13
de/home/.config/sway/scripts/global_shortcuts/weather
Executable file
13
de/home/.config/sway/scripts/global_shortcuts/weather
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
jweather=$( curl wttr.in/?format=j1 )
|
||||
|
||||
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} )
|
||||
|
||||
notify-send "${current_f}°F ${weather_desc}
|
||||
High: ${high_f}
|
||||
Low: ${low_f}
|
||||
"
|
Loading…
Add table
Reference in a new issue