90% of the time I work with my macbook connected to a screen.
I want my macbook to go to preferably lock, but will settle for sleep, when I close it.
I don't care if it is doing anything, if I close the lid, I want the entire machine to lock/sleep.
This does not seem to be possible from what I can tell but I am hoping that you can prove me wrong.
Is there an application or automation to help me secure my system when the lid shuts?