I am very thankful for my current job. WFH, flexible schedule.<p>My central job task is simple and involves one quite repetitive flow. It's piece-work, and so I claim up to 5 pieces at a time and I work through them. It probably takes me 3-10 minutes to work through each piece, longer if I stumble on an advanced case.<p>So at its heart, it is really not a problem for me to get distracted by Slack or email or something at home. Because I can finish one task so quickly and be at a stopping point, it doesn't affect my workflow.<p>My schedule is also 100% flexible, so I can choose my hours and clock in/out as I please. If I clock in and feel drowsy within 10 minutes, I clock out and go to bed, no harm, no foul. If I wake up full of energy, I can clock in and go for a 5-hour "marathon" (I work part-time).<p>Here are a few things that help, nonetheless: limit distractions. My home life is quiet, I live alone. My computers have a dedicated work account and there's no social media or geegaws sending notifications. My phone stays live, but it's well-behaved.<p>I also like to play soothing music that helps focus and lays down a rhythm. I found some ambient, instrumental public-domain tracks that last 1 hour, very repetitive. Very listenable. NEVER listen to vocal music if you're doing intellectual work! You will sing the lyrics or your brain will jumble trying to pay attention to both at once!<p>Good management, good coworkers: Slack is really quiet anyway. People don't do idle chit-chat and I work with a cast of thousands. Mute those Slack channels that spam you. Don't allow notifications to ping you unnecessarily. Management doesn't go in for 1:1 Zooms or extensive chats about something, they want us to focus on our job priorities, and they facilitate that in every way.<p>Stay well-fed and happy. Don't neglect hygiene and household tasks, they'll get you down and keep your mind off work. It's good to be at peace with yourself and the world. Meditate on a regular basis, religious or not: you'll obtain that serenity you long for.