I just spent a couple weeks hyperfocused on solo building a whole new python project from scratch. Motivation is a skill that needs to be trained.
It's a bit counter intuitive, and while your environment needs to be conducive to work. Among the other factors, you dont just gain motivation by having a clean desk.
On the other hand, I'd posit that you're much less likely to feel motivated if your desk is messy.