I have a dog, but he has had both ear canals removed. He's also on phenobarbital for seizures, so he sleeps like a rock. And he's a cocker spaniel, so all he'd do is wag his tail and get excited, not bark. I'm the guard dog I guess.
I keep a pistol, a G21 ready to go with no holster; it is the only one I have that has a light/laser on it too. That is where those things shine, when something goes bump in the night. I keep my M4, unchambered but close, and I keep my carry pistol in the holster there too. Mostly because it stays loaded except for cleaning and I just want it secure --my wife keeps her bag close too for the same reason.
To prevent it being used on me while I sleep, I also have an alarm. You'd be hard pressed to get in here without being detected, I'd say it is probably impossible without special gear and knowledge. As an ex-tech, I did it myself and I know it works. No cut corners.
When I'm gone, they all get locked up.
I just don't need a holster on the nightstand pistol, if I were to holster it I'd just use my carry piece. But because I don't need the holster, I can use a monster like the G21 with a light/laser. It's a great nightstand pistol. I do keep it such that I won't have an AD if I reach for something on the nightstand, and where it can't fall. Safe, but ready to go.