You will find this article helpful if:
- You want to be able to quickly lock your screen/put your mac into to sleep mode.
- You want to set your screen saver/sleep mode, to ask for a password after five seconds.
Method 1 - Login Window
If visible, click on your name in the top right hand corner of your screen and select the Login Window.
If you can't see your name, then you can change this by going into System Preferences > Users & Groups > Log in Options > enable Show fast user switching menu as [Full Name].
This locks your screen and takes you back to the login window, however, it does not log you out.
Method 2 - Hot Corners
Follow these steps to enable your screen to go to sleep/lock:
1. Go to System Preferences located in the Dock
2. Click on Desktop & Screen Saver. And then select the Screen Saver tab.
3. Click on Hot Corners, located on the bottom right hand side.
4. Then select whichever corner you would prefer to use. On most work stations, the bottom right is used the least and so you'd not accidentally put your machine to sleep/lock.
5. You might want to select a time under Start after time so that your machine locks after a certain time.
6. Go back to the main pane in System Preferences and select Security & Privacy.
7. Under General, enable Require password and select 5 seconds (or another option if you prefer). We prefer 5 seconds as it gives you enough time to move your cursor away from the corner if you've accidentally moved it there and don't wish to lock your machine. Likewise, it's also short enough to lock it quickly.