One of my happiest days of my life was when I quit my office job and got a new job where I could work from home with a boss that trusted me to do work at the time that's best for me. Since then, life is much better.
That's the trick, "At a time that's best for me". If I could work like 2 hours in the day and 4-5 at night, I'd have killer productivity, both home and work life.
I quit programming and became a photographer and writer. I'd just look everywhere. I've found the key to being happy in a job seems rather unrelated to the work and more related to the work conditions.
Plus, I still get to use programming at my job to do random tasks like code small wordpress plugins and generated some automated HTML. It's a lot more fun than maintaining large codebases for me.