Since I moved to the (solo) entrepreneurship track I'm way more happy. At first it doesn't pay so you need to have savings, but after some time (depends on the person) you start making a living and you decide what to work on.
Today, half of my time is dedicated to writing software that I genuinely believe have a positive impact on the world (https://github.com/skerkour/bloom), and half of my time is dedicated to writing and sharing (I'm writing a book).
The best thing that I've understood is that even if my primary skills are programming and security related stuff, it doesn't mean I have to code for a living. There are a lot of jobs related to programming that you can switch to.
As a side note, I would add that programming is way too much undervalued in most companies. Programming is very demanding physically and mentally, and if you spend 6hours+ on a chair in front of a screen, you should take a few steps back, and start exercising and leaving the screen a little bit more.