I always thought that I would be able to switch to any programming job I wanted, and that the only decision would be between making a lot and roughing it up (like the GP), or working for a better cause for less money (as you propose).
But now I find it -- after 25 years of professional experience -- nearly impossible to find any job. Maybe it is due to the coronavirus, or the budding depression (or both), but I've never seen the market so slow... :(