Login About Gallery
20-20-20
COMMENT
Variable set up
TEXT
Shortcut Input
TEXT
20-20-20
TEXT
20-20-20_alarm
_check.txt
TEXT
eye_relax_check.txt
TEXT
20-20-20_check.txt
TEXT
TEXT
1
TEXT
0
NUMBER
20
COMMENT
If run by itself, setting are accessible which includes turning the whole shortcut on and off globally. Also have a fix in case it's stuck in a unopenable state
DOCUMENTS
Get File
Service
iCloud Drive
Show Document Picker
Select Multiple
SCRIPTING
If
input
does not have any value
SCRIPTING
Choose from Menu
Fix 20-20-20
DOCUMENTS
Save
off
Service
iCloud Drive
Ask Where to Save
Destination Path
/Shortcuts/
eye_relax_path
Overwrite If File Exists
Turn on 20-20-20
DOCUMENTS
Save
on
Service
iCloud Drive
Ask Where to Save
Destination Path
/Shortcuts/
20-20-20_path
Overwrite If File Exists
Turn off 20-20-20
DOCUMENTS
Save
off
Service
iCloud Drive
Ask Where to Save
Destination Path
/Shortcuts/
20-20-20_path
Overwrite If File Exists
End Menu
End If
COMMENT
Checking if it's in an off state and stops if it is
SCRIPTING
SCRIPTING
Exit shortcut with
Result
End If
COMMENT
Getting global variable and checks what actions to take
DOCUMENTS
Get File
Service
iCloud Drive
Show Document Picker
Select Multiple
SCRIPTING
If
input
is
open
SCRIPTING
COMMENT
Checking if eye relax mode is on and rutrn to home if it is.
returntohomescreen Under Construction
Otherwise
COMMENT
Check if a current alarm is on
DOCUMENTS
Get File
Service
iCloud Drive
Show Document Picker
Select Multiple
SCRIPTING
SCRIPTING
Exit shortcut with
Result
End If
COMMENT
Sets timer to go off in 20 minutes.
CALENDAR
Add
0
seconds
from
Current Date
CLOCK
Get all alarms
SCRIPTING
Repeat with each item in
20-20-20_alarms
Under Construction
End Repeat
CLOCK
Create an alarm for
20mins_from_now
called
Alarm
Repeat
DOCUMENTS
Save
on
Service
iCloud Drive
Ask Where to Save
Destination Path
/Shortcuts/
alarm_check_path
Overwrite If File Exists
End If
Otherwise
COMMENT
This checks if the alarm currently going off is the one made from this shortcut
TEXT
Current Date
MATHS
Options Under Construction
TEXT
Current Date
CLOCK
Get all alarms
CLOCK
Get all alarms
SCRIPTING
If
Alarms
has any value
COMMENT
When the alarm goes off this will stop it from making a noise.
SCRIPTING
Repeat with each item in
20-20-20_alarms
Under Construction
End Repeat
DOCUMENTS
Save
off
Service
iCloud Drive
Ask Where to Save
Destination Path
/Shortcuts/
alarm_check_path
Overwrite If File Exists
SCRIPTING
If
input
is
alarm_triggered
COMMENT
This checks if the screen is locked or not. This requires the install of the Actions app.
Under Construction
SCRIPTING
SCRIPTING
Exit shortcut with
Result
End If
COMMENT
If the alarm is triggered and not locked, this will start a 20 second countdown internally to allow apps to open again
DOCUMENTS
Save
on
Service
iCloud Drive
Ask Where to Save
Destination Path
/Shortcuts/
eye_relax_path
Overwrite If File Exists
returntohomescreen Under Construction
NOTIFICATIONS
Show notification
Input
Options Under Construction
SCRIPTING
NOTIFICATIONS
Show notification
Input
Options Under Construction
DOCUMENTS
Save
off
Service
iCloud Drive
Ask Where to Save
Destination Path
/Shortcuts/
eye_relax_path
Overwrite If File Exists
End If
End If
End If

Showcuts

Magic Vars

Screenshot

Submitted Anonymously 13 days ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0