Skip to content

Instantly share code, notes, and snippets.

@svandragt
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save svandragt/2009c53689d1013d9f92 to your computer and use it in GitHub Desktop.
Save svandragt/2009c53689d1013d9f92 to your computer and use it in GitHub Desktop.
Create a playlist and let this script divide up your poms. (more info on pomodoro work focus technique: http://workawesome.com/productivity/pomodoro )
#NoEnv
#SingleInstance ignore
SendMode Input
playPauseKey = {Control down}{Alt down}{Home}{Alt up}{Control up}
workPeriod := 25 * 60 * 1000
breakPeriod := 5 * 60 * 1000
pomsBeforeLongBreak := 4
Pomodoro:
Loop, %pomsBeforeLongBreak% {
msgbox, Back to work!
Send, %playPauseKey%
Sleep, %workPeriod%
if (A_Index < pomsBeforeLongBreak) {
m = Short break
s = %breakPeriod%
}
else {
m = Long break
s = %workPeriod%
}
msgbox, %m% (%A_Index% / %pomsBeforeLongBreak%)
Send, %playPauseKey%
Sleep, %s%
}
Gosub, Pomodoro
@svandragt
Copy link
Author

You can compile this into an exe with AutoHotkey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment