When I feel the urge to distract myself I'll just get up and do some kind of light bodyweight exercises that require coordination and balance, and then I'm ready to continue the work I was starting to dread.
If anyone reading is into launching maker stuff: consider putting some hardware/software pair on crowdfunding where the hardware connects to a workout detector (kettle bell with accelerometer, treadmill, DDR mat, whatever, my personal favorite would be a comically big crank on a resistance unit, even just a smartwatch with an accelerometer would do) and the software hooks into the computer's power management, detecting heavy load and enforcing some extra throttling unless the workout detector is worked. I believe that this could fool our motivation/reward system quite nicely.