mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-09 22:19:45 +00:00
commit
ffcf64777f
1 changed files with 2 additions and 2 deletions
|
@ -6,10 +6,10 @@
|
|||
|
||||
get_weather()
|
||||
{
|
||||
curl -s v2.wttr.in | grep -e "Weather" | sed 's/C,.*/C/g; s/+//g; s/.*\[0m.//g; s/.//2'
|
||||
curl -s v2.wttr.in | grep -e "Weather" | sed -n 2p | sed s/Weather://g | sed 's/,//g' | sed 's/+//g' | sed 's/°C.*/°C/' | sed 's/.*m//'
|
||||
}
|
||||
|
||||
|
||||
if [ $(( 10#$(date +'%S') % 30 )) -eq 0 ]; then
|
||||
if [ $(( 10#$(date '+%S') % 30 )) -eq 0 ]; then
|
||||
get_weather
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue