This app turns off the MacBook display when it connects to an external monitor
manualdousuario.net
manualdousuario.net
Where it sounds like this utility would come in handy, is using the laptop’s keyboard and trackpad with an external display, without the laptop display enabled.