ShareShortcuts

Pomodoro with Opal

yucli
Dupliquer « Pomodoro with Opal »

Tu as créé quelque chose de nouveau à partir de ce raccourci ? Partage-le comme version dérivée : il devient un raccourci à toi, que tu gères, et les deux pages renvoient l’une vers l’autre pour que yucli soit crédité.

  1. 1Obtenez le raccourci et modifiez-le dans l’app Raccourcis. Donnez-lui un nom bien à lui.
  2. 2Partage-le depuis l’app Raccourcis et copie le lien iCloud.
  3. 3Reviens ici, colle le lien et décris ce qui change, par exemple : « Ajout d’une étape qui utilise Apple Intelligence pour personnaliser le texte. »
Créer mon fork
Téléchargements
8K
Enregistré
0
Actions
23
Catégorie
Productivity
Version
1.0
Langue
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.

Nouveautés

Version 1.0

First release

Historique des versions
1.0 23 janv. 2026

First release

Ce qu’il fait

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

Afficher en tant que code
Bêta

Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.

#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)
}
Ouvrir dans Cherri Playground Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.

Notes et avis

Écrire un avis
–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aucun avis pour le moment. Sois le premier à partager ton avis !

Publicité

Ça pourrait aussi te plaire

Tout afficher
Publicité