I know exactly how you feel. My ability to perform at work is erratic. I don't care about much really. I really am becoming obsessed with finding a solution to my wife's lack of interest in me. It makes you feel like a chump.
While I am not as close as you seem to be to leaving, the thought does linger in my mind. I have determined to stay simply because of my teenage son.
Have you gone to the doc yet for anti-libido pills? Just kidding, sort of. I'm taking Paxil now and it seems to help lower the libido, at least physically. Are you seeing a therapist? I'm looking for one. I would definitely give that a chance before just splitting. If you're willing to let go of your marriage then I would try everything and anything, at that point, what have you got to lose. Somehow it seems like this approach would make it easier. We'll see.
Sorry, your love life sucks too. Don't you just wish we had a "love potion"?