From f597d1285f9786fff413e6ae661616e82c4b7340 Mon Sep 17 00:00:00 2001 From: mollusk Date: Wed, 17 Jun 2020 10:55:49 -0700 Subject: [PATCH] doppler.sh: -ft opens forecast in stand alone terminal --- doppler.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/doppler.sh b/doppler.sh index bcbc9eb..b779857 100755 --- a/doppler.sh +++ b/doppler.sh @@ -24,14 +24,18 @@ fi case "${1}" in - -f | forecast) 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} ;; -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" ;; *)