projects
/
stationnotifier
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'main' of github.com:frrobert2/StationNotifier into main
[stationnotifier]
/
notificatorossl
diff --git
a/notificatorossl
b/notificatorossl
index 74bfe81a8264aab2c23202384ec4d79d628ab3b7..5ade715bab70900bb851d0422bf7e53f689c5a03 100755
(executable)
--- a/
notificatorossl
+++ b/
notificatorossl
@@
-5,6
+5,7
@@
key=''
cert=''
connectto=30
key=''
cert=''
connectto=30
+howoften=
tmpfile=$(mktemp /tmp/not.XXXXXX)
url="gemini://station.martinrue.com/frrobert"
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!"
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
case $answer in
- amfora) $(amfora $url)
+ amfora)
+ amfora $url
+ clear
+ ;;
+ lagrange)
+ lagrange $url
+ clear
+ ;;
+ *)
+ clear
;;
esac
;;
esac
-
+echo "waiting for new notifications"
lasttime=$notifications
unset my_array
fi
lasttime=$notifications
unset my_array
fi