I'm able to work on my job all day and still do some FOSS or personal projects coding in my free time, but I don't code all day, my main priorities are to perfect my skills so that when I do write code I write it faster and more efficiently to get things done quicker and in a way I don't have to keep coming back to fix past mistakes or errors.
Another thing is always having a low time preference i.e. everything will get done with time so if I work on something for at least 1 hour a day I know that would add up to 10 hours in 10 days, I focus on my long term health and ability to maintain habits consistently which helps getting everything I want done and enjoying every moment while doing it, working out in between, etc. I started this in 2020 during the pandemic and haven't stopped since, but I do take breaks as well