The real question is why should you keep your programming motivation up if its not something you're enjoying? Find something you enjoy and do that! Programming is a means to an end. If you want to enjoy the means more, find a more inspiring end!
It's a bull market right now, you can try working in a very different kind of programming.
> you can try working in a very different kind of programming.
On that note, how do you manage to work in X when all your years of experience are in Y? I'd love to try different things, but I just don't know how to pivot