weather tooltip information
This commit is contained in:
parent
cc2c37ef8f
commit
58704035dd
2 changed files with 7 additions and 1 deletions
3
waybar/scripts/wttr.sh
Executable file
3
waybar/scripts/wttr.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
wttr=$(curl -s "https://wttr.in/Louisville?m&format=%t")
|
||||
tooltip=$(curl -s "https://wttr.in/Louisville?m&format=<u>%C</u>:RealFeel+%f:UV+Index+%u:Precip.+%p:Wind+%w"|sed 's/:/\\n/g')
|
||||
echo -E "{\"text\":\"$wttr\",\"tooltip\":\"$tooltip\"}"
|
Loading…
Add table
Add a link
Reference in a new issue