I've seen many engineers manage this by simply finding ways to work less.
Programming is sufficiently difficult that time it takes to complete tasks can vary by more than order of magnitude. I've given a junior engineer a task that would take me 2 hours, had them come back with a solution in a week, and been happy with the result.
So if you achieve a certain level of skill you can take jobs that are "beneath you" and claim the tasks that took you 10-20 hours actually took you 40. It's not particularly honest, but most employers aren't willing to engage in fair market rates at 20 hours a week so people find ways to get what they want outside of the system.
Yeah that is kind of how I'm approaching it after I was diagnosed with serious health issues. I just take it easy on my job where I can do in 20 hours what others take 40 hours. I still get paid well above what I need to live. My travel times to work are good. I rarely have to work on weekends.
Programming is sufficiently difficult that time it takes to complete tasks can vary by more than order of magnitude. I've given a junior engineer a task that would take me 2 hours, had them come back with a solution in a week, and been happy with the result.
So if you achieve a certain level of skill you can take jobs that are "beneath you" and claim the tasks that took you 10-20 hours actually took you 40. It's not particularly honest, but most employers aren't willing to engage in fair market rates at 20 hours a week so people find ways to get what they want outside of the system.