Both, I usually have whatever pistol I'm carrying at the time loaded & within easy reach. (takes my old eyes a while to regain focus when awoken in the middle of the night so it is basically a belly gun until I am up for a few minutes)
I also have a bedside SRM 1216 (short 16 shot 12ga shotgun). First 5 rounds are #4 buck, next 5 are 00 buck, last 6 rounds are slugs. Shotgun has a high lumen light & an auto adjusting red dot sight.
I have a close & far bathroom in my house (far one is 5 rooms & 75 feet away), sometimes when I get up in the middle of the night to pee I will grab the SRM 1216 & practice clearing my house to the far bathroom (eye opening, or should I say eye blurring for the first few seconds until my night vision comes on line)