mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-22 02:22:53 +00:00
15 lines
204 B
Bash
Executable file
15 lines
204 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Deps:
|
|
# curl
|
|
|
|
|
|
get_weather()
|
|
{
|
|
curl -s v2.wttr.in | grep -e "Weather" | sed 's/C,.*/C/g; s/+//g; s/.*\[0m.//g; s/.//2'
|
|
}
|
|
|
|
|
|
if [ $(( 10#$(date +'%S') % 30 )) -eq 0 ]; then
|
|
get_weather
|
|
fi
|