1. Insist on work life balance, a40 hour work week, and stick to it. Employers very much do exist which want this just as much as you do.
2. Ensure you get plenty of unstructured time (play time) and also rest every day.
3. Realize that your employment does not define who you are.
4. Not all employers are awful. Seek out employers from publicly traded, midsize companies with profit motive (no government jobs/insurance companies, but no startups either). I find these jobs to be the "funnest", though I am currently a cog in the machine if a large company. They are fun because there's no time for politics, but there's no huge rush either, just get your job done and do it well. If you cannot switch, do whatever you need to do to stay sane in your current environment. Take care of you.
5. Exercise creativity -- a few minutes of "fun" programming a day -- and it will get fun again.
6. See a therapist. "Burnout" generally is accompanied anxiety and/or depression. It is certainly helping me.
Burnout can be temporary. But it requires work to overcome it.
Burnout can be temporary. But it requires work to overcome it.