Scan with your iPhone to install
Automates your work day! Use this to automatically set alarms as a heads up for your breaks (also see my break Automator shortcut) Also includes some optional ideas to personalize, like a place to message a significant other your break schedule and a place to start any work mode scenes you may have set up with your smart home or smart devices at work.
What's New
Version 1.0
First release
What it does
25 actions-
Set Bluetooth
-
Set Low Power Mode
-
Set Focus
-
Ask for InputWhen is your first break?
-
Add to Variable
-
Ask for InputWhen is your 2nd break?
-
Add to Variable
-
Choose from MenuHow many additional breaks?
-
Choose from MenuOne
-
Ask for InputWhen is your 3rd break?
-
Add to Variable
-
Choose from MenuTwo
-
Ask for InputWhen is your 3rd break?
-
Add to Variable
-
Ask for InputWhen is your 4rd break?
-
Add to Variable
-
Choose from MenuNone
-
Repeat with Each
-
M T Create Alarmcom.apple.mobiletimer-framework.MobileTimerIntents
-
Send Message
-
Choose from MenuShould I turn on the Good Morning Scene
-
Choose from MenuYes
-
Homeaccessory
-
Kasa Run Scenecom.tplink.kasa-ios
-
Choose from MenuNo
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#include 'actions/sharing'
#define mac false
#include 'actions/device'
#define color darkgray
#define glyph timer
setBluetooth(0)
setLowPowerMode(1)
setFocusMode(, "Time", "10 pm")
prompt("When is your first break?", "Time")
@BreakTimes
prompt("When is your 2nd break?", "Time")
@BreakTimes
menu "How many additional breaks?" {
item "One":
prompt("When is your 3rd break?", "Time")
@BreakTimes
item "Two":
prompt("When is your 3rd break?", "Time")
@BreakTimes
prompt("When is your 4rd break?", "Time")
@BreakTimes
item "None":
}
for _ in @BreakTimes {
createAlarm("", @RepeatItem)
}
sendMessage(, "Break times (add 5 min to each): \n{@BreakTimes}", true)
menu "Should I turn on the Good Morning Scene" {
item "Yes":
rawAction("is.workflow.actions.homeaccessory", {
"WFHomeTriggerActionSets": ""
})
rawAction("com.tplink.kasa-ios.KasaRunSceneIntent", {
"ShowWhenRun": false,
"scene": ""
})
item "No":
}
Open in Cherri Playground
Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.
Ratings & Reviews
Write a Review–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Advertisement
More by gutlessbubble96
You Might Also Like
Advertisement