ShareShortcuts
Fork “Pomododo 🦤”

Har du bygget noget nyt oven på denne genvej? Del den som en fork: den bliver din egen genvej, som du styrer, og begge sider linker til hinanden, så springy får kredit.

  1. 1Hent genvejen og ret den i Genveje-appen. Giv den sit eget navn.
  2. 2Del den fra Genveje-appen og kopiér iCloud-linket.
  3. 3Kom tilbage hertil, indsæt linket og beskriv, hvad der er anderledes, fx “Tilføjet et trin, der bruger Apple Intelligence til at gøre teksten mere personlig.”
Downloads
18K
Gemt
0
Handlinger
73
Kategori
API
Version
1.0
Sprog
EN

I created Pomododo after not finding what I wanted for free in either app form or shortcut form. This shortcut creates a simple 25/5 with four rounds pomodoro in the reminders app. If you'd like to customize the pomodoro, instructions are provided in the shortcut edit screen. You just set it and forget it, letting you be able to work freely without any distractions.

Nyheder

Version 1.0

First release

Versionshistorik
1.0 12. jan. 2025

First release

Hvad den gør

73 handlinger
  1. Comment
    🗻 Introduction Pomododo is meant to be a simple, “set and forget” pomodoro shortcut utilizing the Reminders app. By default the shortcut provides a 24/5 pomodoro that repeats four times. If you want to customize this shortcut, instructions are prov…
  2. Comment
    Set up below! 🦤
  3. Comment
    Make sure to delete this notification by pressing the x on the first white bubble once you are used to this shortcut!
  4. Choose from Menu
    First time using Pomododo?
  5. Choose from Menu
    Please stop this shortcut by pressing the bottom of the screen.
  6. Choose from Menu
    Then hold and press edit in the shortcut menu to read the introduction.
  7. Comment
    Insert how long you want to work next to the hashtag
  8. Number
  9. Set Variable
    work
  10. Comment
    Insert how long you want to take a break next to the hashtag
  11. Number
  12. Set Variable
    break
  13. Comment
    Insert how many rounds you want to do next to the hashtag
  14. Number
  15. Set Variable
    rounds
  16. Comment
    If you want to warm up before working, insert a number next to the hashtag. Note: The warmup time must be in seconds, use a converter like this one to adjust (https://www.calculateme.com/time/seconds/to-minutes/)
  17. Number
  18. Set Variable
    warm
  19. Comment
    Change wording for the warm up notification in the “Text” bubble
  20. Text
  21. Set Variable
    warm-notif
  22. Comment
    If you want a long break after the four rounds, insert a number next to the hashtag. Right now the timer is set to send a congradulations message after 5 seconds, so make sure to change the message in the “Text” bubble as well.
  23. Number
  24. Set Variable
    long
  25. Text
  26. Set Variable
    long-notif
  27. Comment
    ⚠️ no touching below! ⚠️
  28. Comment
    time
  29. Date
  30. Set Variable
    time
  31. Comment
    create new list
  32. Choose from Menu
    Do you want to create a new list for your pomodoro?
  33. Choose from Menu
    Yes
  34. T T R Create List
    com.apple.reminders
  35. Comment
    start
  36. Reminders Showlist
  37. Adjust Date
  38. Set Variable
    time
  39. Show Notification
    Starting in ……
  40. Add New Reminder
  41. Comment
    repeat
  42. Number
  43. Repeat
  44. Adjust Date
  45. Set Variable
    time
  46. Add New Reminder
  47. Adjust Date
  48. Set Variable
    time
  49. Add New Reminder
  50. Adjust Date
  51. Set Variable
    time
  52. Add New Reminder
  53. Comment
    no custom list
  54. Choose from Menu
    No
  55. Comment
    start
  56. Show Alert
  57. T T R Open Smart List
    com.apple.reminders
  58. Show Notification
    Starting in ……
  59. Adjust Date
  60. Set Variable
    time
  61. Add New Reminder
  62. Comment
    repeat
  63. Number
  64. Repeat
  65. Adjust Date
  66. Set Variable
    time
  67. Add New Reminder
  68. Adjust Date
  69. Set Variable
    time
  70. Add New Reminder
  71. Adjust Date
  72. Set Variable
    time
  73. Add New Reminder

Vis som kode
Beta

Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.

#include 'actions/calendar'
#define color darkorange
#define glyph mountain

/*
🗻 Introduction 
Pomododo is meant to be a simple, “set and forget” pomodoro shortcut utilizing the Reminders app. By default the shortcut provides a 24/5 pomodoro that repeats four times. If you want to customize this shortcut, instructions are provided below. Have fun with Pomododo!
*/
// Set up below! 🦤

// Make sure to delete this notification by pressing the x on the first white bubble once you are used to this shortcut!


menu "First time using Pomododo?" {
item "Please stop this shortcut by pressing the bottom of the screen.":
item "Then hold and press edit in the shortcut menu to read the introduction.":
}
/*
Insert how long you want to work next to the hashtag

*/
@work = 27
/*
Insert how long you want to take a break next to the hashtag


*/
@break = 5
/*
Insert how many rounds you want to do next to the hashtag

*/
@rounds = 4
/*
If you want to warm up before working, insert a number next to the hashtag.
Note: The warmup time must be in seconds, use a converter like this one to adjust (https://www.calculateme.com/time/seconds/to-minutes/)

*/
@warm = 10
/*
Change wording for the warm up notification in the “Text” bubble

*/
@warmnotif = " seconds"
// If you want a long break after the four rounds, insert a number next to the hashtag. Right now the timer is set to send a congradulations message after 5 seconds, so make sure to change the message in the “Text” bubble as well.

@long = 5
@longnotif = "You're done! Congratulations!"
/*
⚠️ no touching below! ⚠️

*/
/*
time

*/
currentDate()
@time
/*
create new list

*/

menu "Do you want to create a new list for your pomodoro?" {
item "Yes":
	rawAction("com.apple.reminders.TTRCreateListAppIntent", {
		"AppIntentDescriptor": "",
		"name": "Pomododo 🦤"
	})
	/*
	start
	
	*/
	rawAction("is.workflow.actions.reminders.showlist", {
		"WFList": "CreateList['name']"
	})
	adjustDate(@time, "")
	@time
	showNotification("Starting in {@warm}{@warmnotif}")
	rawAction("is.workflow.actions.addnewreminder", {
		"WFAlertCustomTime": "{@time}",
		"WFAlertEnabled": "Alert",
		"WFCalendarDescriptor": "CreateList['name']",
		"WFCalendarItemTitle": "Work Begins! 🦤"
	})
	/*
	repeat
	
	*/
	const Number = number(@rounds)
	repeat _ for Number {
		adjustDate(@time, "")
		@time
		rawAction("is.workflow.actions.addnewreminder", {
			"WFAlertCustomTime": "{@time}",
			"WFAlertEnabled": "Alert",
			"WFCalendarDescriptor": "CreateList['name']",
			"WFCalendarItemTitle": "Break Time!"
		})
		adjustDate(@time, "")
		@time
		rawAction("is.workflow.actions.addnewreminder", {
			"WFAlertCustomTime": "{@time}",
			"WFAlertEnabled": "Alert",
			"WFCalendarDescriptor": "CreateList['name']",
			"WFCalendarItemTitle": "Work Time!"
		})
	}
	adjustDate(@time, "")
	@time
	rawAction("is.workflow.actions.addnewreminder", {
		"WFAlertCustomTime": "{@time}",
		"WFAlertEnabled": "Alert",
		"WFCalendarDescriptor": "CreateList['name']",
		"WFCalendarItemTitle": "{@longnotif}"
	})
	// no custom list

item "No":
	// start

	confirm("Choose where you want to place your pomodoro!")
	rawAction("com.apple.reminders.TTROpenSmartListAppIntent", {
		"AppIntentDescriptor": "",
		"targetEntity": "Ask"
	})
	showNotification("Starting in {@warm}{@warmnotif}")
	adjustDate(@time, "")
	@time
	rawAction("is.workflow.actions.addnewreminder", {
		"WFAlertCustomTime": "{@time}",
		"WFAlertEnabled": "Alert",
		"WFCalendarDescriptor": "CreateList['name']",
		"WFCalendarItemTitle": "Work begins! 🦤"
	})
	/*
	repeat
	
	*/
	number(@rounds)
	repeat _ for @rounds {
		adjustDate(@time, "")
		@time
		rawAction("is.workflow.actions.addnewreminder", {
			"WFAlertCustomTime": "{@time}",
			"WFAlertEnabled": "Alert",
			"WFCalendarDescriptor": "CreateList['name']",
			"WFCalendarItemTitle": "Break Time!"
		})
		adjustDate(@time, "")
		@time
		rawAction("is.workflow.actions.addnewreminder", {
			"WFAlertCustomTime": "{@time}",
			"WFAlertEnabled": "Alert",
			"WFCalendarDescriptor": "CreateList['name']",
			"WFCalendarItemTitle": "Work Time!"
		})
	}
	adjustDate(@time, "")
	@time
	rawAction("is.workflow.actions.addnewreminder", {
		"WFAlertCustomTime": "{@time}",
		"WFAlertEnabled": "Alert",
		"WFCalendarDescriptor": "CreateList['name']",
		"WFCalendarItemTitle": "{@longnotif}"
	})
}
Åbn i Cherri Playground Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.

Bedømmelser og anmeldelser

Skriv en anmeldelse
–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ingen anmeldelser endnu. Vær den første!

Annonce

Du vil måske også kunne lide

Se alle
Annonce