ShareShortcuts

Pomodoro with Opal

yucli
Fork “Pomodoro with Opal”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so yucli gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
8K
Saved
0
Actions
23
Category
Productivity
Version
1.0
Language
EN

A Shortcut to set recursive timers for working a resting within a Pomodoro Technique session. It also starts an Opal session to block distracting apps during the work timer.

You can choose the length of the Rest and Work timers and also the number of Intervals you want to have within the session.

What's New

Version 1.0

First release

Version History
1.0 Jan 23, 2026

First release

What it does

23 actions
  1. Ask for Input
    Work time
  2. Calculate
  3. Set Variable
    Ws
  4. Comment
    It's necessary to turn the input minutes into seconds because the script Wait only recognizes seconds
  5. Ask for Input
    Rest
  6. Calculate
  7. Set Variable
    Rs
  8. Ask for Input
    Intervals
  9. Set Variable
    I
  10. Repeat
  11. Start Timer
  12. Start Session Shortcut
    com.withopal.opal
  13. Wait
  14. Comment
    I added this wait to give time to the user to turn off the timer. Without this the "Rest" timer started immediately and a glitch caused you to turn that one off instead of the "Work" one.
  15. Calculate
  16. Set Variable
    I
  17. If
  18. Stop This Shortcut
  19. Wait
  20. Comment
    The same as before.
  21. Start Timer
  22. Wait
  23. Wait

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/calendar'
#define color red
#define glyph apple

const W = prompt("Work time", "Number")
@Ws = W * 60
// It's necessary to turn the input minutes into seconds because the script Wait only recognizes seconds 

const R = prompt("Rest", "Number")
@Rs = R * 60
@I = prompt("Intervals", "Number")

repeat _ for 99 {
	startTimer()
	rawAction("com.withopal.opal.StartSessionShortcutIntent", {
		"AppIntentDescriptor": "",
		"duration": "W",
		"sessionMode": "",
		"timing": "duration"
	})
	wait(@Ws)
	// I added this wait to give time to the user to turn off the timer. Without this the "Rest" timer started immediately and a glitch caused you to turn that one off instead of the "Work" one.

	@I = @I - 1
	if @I <= 0 {
		stop()
	}
	wait(7)
	// The same as before. 

	startTimer()
	wait(@Rs)
	wait(7)
}
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

You Might Also Like

See All
Advertisement