#!/bin/sh IMAGE_URL="https://radar.weather.gov/lite/N0R/FSX_loop.gif" VIDEO_PLAYER=/usr/bin/mpv if [[ ! -f "${VIDEO_PLAYER}" ]];then echo "${VIDEO_PLAYER} not found" echo "Please install it with your system's package manager" notify-send "${VIDEO_PLAYER} not found" "Please install it with your system's package manager" exit 1 fi notify-send "Getting radar image" "please wait..." ${VIDEO_PLAYER} --loop=inf "${IMAGE_URL}"