That's more or less the path I took 13 years ago and at a somewhat younger age. I can't say what the forecast looks like now for that path; I'm a bit insulated from that marketplace (self-employed and experienced). I have to admit that my phone is a lot less busy from recruiters than it was in the 1990s. Perhaps they figured out I was happy. Perhaps the job "inventory" shriveled up.
Keep an eye out for positions in IP transaction work while you're in law school. We appear to be a dig-out phase (post boom and bust -- and a bit slow in the digging out) of the Internet boom-bust-digout cycle. What I hear about is a imminent flood of mergers and acquisitions in software/Internet companies with the software assets being possibly tainted with open source licenses. The ability to speak with software engineers to determine flagged instances of potential OS taint is a delicate task nd requires valuable skill, based largely on being able to get the technical respect of the engineers. Former software engineers are particularly valuable in that role.
So, pay attention in Contracts. Maybe take some advanced courses in IP transactions if any are offered. If you meet some nice people from a firm that does a lot of transactional work for software clients, consider that as a viable alternative to patents. I believe that type of work will be a growth industry in the next few years. Of course, I've thought many other things that never came to pass, so take my guesses for what they're worth.
If I'm right in listening to economist mapping out the boom-bust-digout cycle, there may be some growth in software patent work as well. However, you should be aware that every patent attorney thinks they can do software patents, even though most of them can't. But don't tell them they can't do software patents during an interview. Get the job first, then tell them. Better yet, show them. That's what I did.