dotfiles/.config/polybar/scripts/weather.sh
2021-07-11 16:54:17 +03:00

3 lines
199 B
Bash
Executable File

#!/bin/sh
exec notify-send "$(curl -s http://rss.accuweather.com/rss/liveweather_rss.asp\?metric\=${METRIC}\&locCode\=76692 \ | sed -n '/Currently:/ s/.*: \(.*\): \([0-9]*\)\([CF]\).*/\2°\3 \1/p')"