- doing each action correctly
- finding micro optimizations (if I turn the mower this way, I get that stupid piece of grass that I can never get without another entire pass)
- or, dare I say, finding joy in a job well done helps me get into a "mindfulness"(?) mindset
"Job" meaning everything from "put my shoes on" to "sharpened the mower blade well" to "made the pass with that mower perfectly" to "got all the yard work done". Focusing on the small bits first seems to snowball into the larger ones.
I think getting into the mindfulness mindset and finding joy is what has really helped me. The work itself is boring, tedious, etc. However, pride in a job well done feels good, which creates a positive feedback loop. This year, the yard work has felt less terrible and the yard is looking better than ever.
I'm not quite there yet with software development, but applying the same sort of strategy has been helping over the past couple of weeks. Not every day is omg-amazing but the good days are starting to outweigh the bad ones.