generated from me/template-mit
Compare commits
2
Commits
68b703ff7e
...
35db6c2c5f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
35db6c2c5f | ||
|
|
f671e3d94d |
+3
-3
@@ -51,10 +51,10 @@ fi
|
|||||||
# Internet connectivity check
|
# Internet connectivity check
|
||||||
###############################################################################
|
###############################################################################
|
||||||
check_internet() {
|
check_internet() {
|
||||||
if curl -s --max-time 5 -o /dev/null https://www.google.com/generate_204; then
|
if curl -s --max-time 5 -o /dev/null https://hyperling,com; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
if curl -s --max-time 5 -o /dev/null https://captive.apple.com/hotspot-detect.html; then
|
if curl -s --max-time 5 -o /dev/null https://mullvad.net; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
return 1
|
return 1
|
||||||
@@ -95,7 +95,7 @@ fetch_sunset_time() {
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
show_alert() {
|
show_alert() {
|
||||||
TITLE="Sunset Alarm"
|
TITLE="Sunset Alarm"
|
||||||
MESSAGE="Sunset is in ${MINUTES} minute(s)."
|
MESSAGE="Sunset is at $(date -d @${SUNSET_EPOCH} +"%H:%M")."
|
||||||
|
|
||||||
persistent="-t 0 --wait"
|
persistent="-t 0 --wait"
|
||||||
icon="-i weather-clear -u critical"
|
icon="-i weather-clear -u critical"
|
||||||
|
|||||||
Reference in new issue
Block a user