Ouch. I can totally relate to that. Something that I've found works for me is using a pomodoro system: https://en.wikipedia.org/wiki/Pomodoro_Technique I use an app for it: https://pomotodo.com/intl/en/