9 lines
427 B
Plaintext
Executable File
9 lines
427 B
Plaintext
Executable File
export location="pueblo"
|
|
function testweather() { \
|
|
[ "$(stat -c %y "$HOME/.local/share/weatherreport" 2>/dev/null | cut -d' ' -f1)" != "$(date '+%Y-%m-%d')" ] &&
|
|
ping -q -c 1 1.1.1.1 >/dev/null &&
|
|
curl -s "wttr.in/$location" > "$HOME/.local/share/weatherreport" &&
|
|
notify-send "🌞 Weather" "New weather forecast for today." &&
|
|
refbar
|
|
}
|