Currently reprogramming myself on this. I’ve started doing more stuff on paper and using single-use devices as there’s not an immediate attention demand from something else then.
I didn't even do it on purpose, it was a force of habit. I programmed myself to interrupt myself with mindless distractions, not even diversions, distractions.
So yeah, I always carry a small notebook and a kindle (and a fanny pack) and I have no social media apps on my phone which is a start.