doppler.sh: -ft opens forecast in stand alone terminal

This commit is contained in:
mollusk 2020-06-17 10:55:49 -07:00
parent 2242818f97
commit f597d1285f

View File

@ -24,14 +24,18 @@ fi
case "${1}" in case "${1}" in
-f | forecast) -f | forecast)
echo "Getting forecast from ${FORECAST_URL}..." echo "Getting forecast from ${FORECAST_URL}..."
${LINK_DOWNLOADER} ${FORECAST_URL}
;;
-ft | forecast-terminal)
notify-send "Getting forecast from ${FORECAST_URL}..."
${TERMINAL_APP} ${TERMINAL_OPTS} ${LINK_DOWNLOADER} ${FORECAST_URL} ${TERMINAL_APP} ${TERMINAL_OPTS} ${LINK_DOWNLOADER} ${FORECAST_URL}
;; ;;
-h | help | --help) -h | help | --help)
echo -e "\nUsage: ${0} [-f | forecast ], [-h, help, --help]\n" echo -e "\nUsage: ${0} [-f | forecast ], [-ft, forecast-terminal], [-h, help, --help]\n"
;; ;;
*) *)