Not a bad idea, since averting an armed confrontation is probably good survival policy.
I always thought about installing a master switch that turned on a whole bunch of bright lights inside and outside the house. There would be no doubt to an intruder that he had lost the initiative.
Of course, the Great Danes roaring out of the darkness sends that message with dramatic effect.
Aside: I always have a full set of spare keys in the bedroom, should I need to exit through the window (mostly in case of fire, but in another event I have a chance at getting to transportation and other useful items).