ShareShortcuts

Pomodoro with Opal

yucli
Bifurcar “Pomodoro with Opal”

¿Creaste algo nuevo a partir de este atajo? Compártelo como bifurcación: se convierte en un atajo tuyo, que tú administras, y ambas páginas se enlazan entre sí para que yucli reciba el crédito.

  1. 1Obtén el atajo y modifícalo en la app Atajos. Ponle un nombre propio.
  2. 2Compártelo desde la app Atajos y copia el enlace de iCloud.
  3. 3Vuelve aquí, pega el enlace y describe qué es diferente, p. ej., “Se añadió un paso que usa Apple Intelligence para personalizar el texto”.
Descargas
8K
Guardado
0
Acciones
23
Categoría
Productivity
Versión
1.0
Idioma
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.

Novedades

Versión 1.0

First release

Historial de versiones
1.0 23 de ene. de 2026

First release

Qué hace

23 acciones
  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

Ver como código
Beta

Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.

#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)
}
Abrir en Cherri Playground Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.

Valoraciones y reseñas

Escribe una reseña
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!

Publicidad

También te puede gustar

Ver todo
Publicidad