how to turn off external display on mac code example Example: how to turn off mac display pmset displaysleepnow