Last active
August 29, 2015 14:27
-
-
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 )
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can compile this into an exe with AutoHotkey.