The idea of practicing a quick reaction plan is a good suggestion.
I have a basic plan that involves disengagement and immediate security, then finding a phone first at dialing 911 (999 here in the UK) before I attempt any sort of contact. If I'm not already near a firearm, my first go-to item is the phone. I can use the few seconds spent dialing 911 to go over any escape or confrontation plan so I'm not rushing into a confrontation while half asleep or confused.
As for my confrontation plan, there are a few steps I would plan on taking.
Before all of this, my primary plan is avoidance/disengagement and call 911. Then I would try to go with this general basic plan. Obviously if they were actively assaulting someone in the house, the priorities would shift some but at least dialing 911 should still be done prior to the confrontation if at all possible.
1. Locate all intruders if possible, and if they're moving wait until they're in an area that gives them no cover, no escape, and at least 10 ft distance between me and them.
2. Instant illumination of the situation. Their eyes may be better adapted to darkness than mine and you can't be sure you know where everyone is but they'll know right where you are, so might as well turn on the lights.
3. Assess number, size, ID, and weaponry of intruders.
4. Shout something suitably heroic such as "freeze or I will shoot"
5. If I see ANY weaponry or they make any steps in my direction, go 2 to the body and 1 to the head until they're down.
Having a phone by the bed is just as important as any weapons you choose to keep available. If they're ransacking another room but haven't entered your room or don't know that you're there, might as well sit tight and give the cops some time to show up, especially if there are other family members in the house that may not be able to defend themselves. But even if there is an assult in progress, at least dialing 911 and shouting something about them killing your wife and then putting down the phone (don't hang up!) is better than not calling at all, and it only takes a few seconds.