Ok... then I think you should consider switching jobs before being a father... otherwise you'll probably not do it for at least the first year. Also, it's great that you take 4-5 months of leave when the baby comes but don't think you'll have much time then to explore technologies, etc I know because I have a 5 month old baby...
Also, consider that if you switch jobs you probably want to tell the new employer that you plan to have parental leave in 5 months, otherwise they might opose, being a new hire...
Unless you did freelancing of course, but if you currently don't have much love for programming I don't think that is a good option.
So you should consider, with your current knowledge and skills, and not enjoying programming, if you would enjoy better maybe being a software development manager, or a technical recruiter, or technical sales or business analyst?