Not that I've conquered it by any means, but I find narrating helps for me to maintain a thread of activity. Lots of my work involves switching between applications & cloud folders and any break in that can trip me up. I find if I talk to myself as if I were explaining what I'm doing (ie a tutorial but not as rigorous) that really helps. I used to use screen capture software to take time-lapse videos to give myself the impression I was being watched/monitored. But that isn't as effective as I know I'll probably never watch them.