TL;DR - Focus is an environment problem, not a willpower problem. Clean the environment, put the tasks in a list, put the right music on, and do one thing at a time. The single most important rule is to write down what you're going to do before the session, or you'll drift and never touch the high-leverage task.
Clean the environment first
No distractions.
- I close all the tabs.
- I put my tasks into a task-management tool and just execute them one at a time.
- On bad-sleep days, when my discipline is low, I run SelfControl to block the apps I can't be trusted with. I win that fight once, by design, instead of every morning.
Minimalistic setup

My setup is minimalistic on purpose. One monitor. No window borders on Mac. One window on the screen, max two at a time. Every open window is an open loop, and I don't want loops. Just the thing I'm working on.
The right audio
I listen to
- Brain.fm
- Two channels - Productivity.fm and Etxrnal. Relaxing music that drops me into the calm flow state I want in the morning.
Combined with the coffee kicking in, that's my "I can be great now" switch.
Write it down before you start
The rule that matters most - before any focus session, write down exactly what you're going to do. Skip it and you'll flow around aimlessly and never finish the highest-leverage thing. The written list is what keeps the session pointed at what matters.
One thing at a time
I don't switch tasks until the current one hits the milestone I set. Task-swapping feels productive and isn't. It's exactly how the important thing stays unfinished.
The foundation - sleep
None of it works on bad sleep. Getting into a genuinely focused state needs good sleep underneath it. That's why my evening setup and my caffeine timing matter as much as any focus trick.