This allows running a command on a laptop's lid being opened/closed or a tablet's button/switch being pressed/toggled.