I wonder if there is some way to customize the lock screen feature of my macbook air (running Mountain Lion) in such a way that:
1: When I close the lid, and then open it, the screen is not locked (that is, I do not have to write my password).
2: When I explicitly put the macbook air to sleep (with Power Button + Sleep option), and then wake it from sleep, the screen is locked (that is, I do have to write my password).
Thanks in advance
@bmike Thanks for for your response, but I think I did not explain clearly what I wanted. I wanted an easy way to put the computer to sleep and either not been asked for a password when it wakes (if I close the lid) or been asked for a password (when I explicitly put the computer to sleep).
@George Oross: Thanks for your response. I tried to find in the apple developers website some info on how to detect those signals, but made no advance.
I think that the best way to do that is to enable the "lock screen" menu item (via Keychain Access). If I want a "secure sleep" I first lock the screen through the menu and then close the lid to put it to sleep. If I want a "non-secure sleep" I simply close the lid.