X-Git-Url: https://software.frrobert.com/stationnotifier/blobdiff_plain/d957c8d604855d17a2805e3d929bfee76c8b7e8d..4b45c17b2d0c4a897ced09d1c7ac05435762830a:/notificatorossl diff --git a/notificatorossl b/notificatorossl index 74bfe81..5ade715 100755 --- a/notificatorossl +++ b/notificatorossl @@ -5,6 +5,7 @@ key='' cert='' connectto=30 +howoften= tmpfile=$(mktemp /tmp/not.XXXXXX) url="gemini://station.martinrue.com/frrobert" @@ -36,12 +37,21 @@ do if [[ $notifications -gt $lasttime ]]; then echo -en "\007" echo "You have new notifications!" - read -p "Press enter to continue or amfora to go to notifications" answer + read -p "Press enter to continue, or either type amfora or lagrange to go to notifications" answer case $answer in - amfora) $(amfora $url) + amfora) + amfora $url + clear + ;; + lagrange) + lagrange $url + clear + ;; + *) + clear ;; esac - +echo "waiting for new notifications" lasttime=$notifications unset my_array fi