Turns out the Joby gorillapods are pretty awesome for typing in bed. I set one over each thigh and can rearrange at whim so they stay at the angle most comfortable from moment to moment.