I worked part-time during almost all of my programming career, maybe 17 years. One job was 3 days a week, another 9 months out of 15, currently it's two weeks out of three.
If you want to do something like that, my only advice is to stubbornly refuse to work more. I always make that clear before the first interview.