ShareShortcuts
Fazer fork de “Pomodoro with Opal”

Criou algo novo a partir deste atalho? Compartilhe como uma derivação: ela se torna um atalho seu, que você gerencia, e as duas páginas têm links entre si para que yucli receba o crédito.

  1. 1Obtenha o atalho e altere-o no app Atalhos. Dê a ele um nome próprio.
  2. 2Compartilhe pelo app Atalhos e copie o link do iCloud.
  3. 3Volte aqui, cole o link e descreva o que mudou, por exemplo: “Adicionei uma etapa que usa a Apple Intelligence para personalizar o texto.”
Downloads
8K
Salvo
0
Ações
23
Categoria
Productivity
Versão
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.

Novidades

Versão 1.0

First release

Histórico de versões
1.0 23 de jan de 2026

First release

O que ele faz

23 ações
  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 as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele 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 no Cherri Playground Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.

Avaliações e comentários

Escrever uma avaliação
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!

Publicidade

Você também pode gostar

Ver tudo
Publicidade