A quote from a novel has always been an inspiration since I read it in high school - "An artist must leave a body of work" from The Agony And The Ecstasy, about Michelangelo. If your programming no longer excites you, learn something new in programming, or even learn something that isn't programming and do that. It's not easy, and might cost you money, but wasting your life doing something you no longer care about is not worth it.
Of course some people can deal with a terrible job, and just spend the non-working time doing what they love, and that's OK if you can deal with it. I could never do that; I didn't turn to art until the last few years.