The screen lock here means that when you leave your computer, you do not want to log out and want to run the program, but do not want others to use your computer, in this way, the screen is temporarily locked. When you are about to use it again, you only need to enter the login password and return to the original desktop. And the screensaver in Windows requires a password, but there seems to be more options in OS X.
In OS X's default shortcut key list, there is no combination key used to quickly lock the screen, unlike Windows XP,
By using the Windows key + L, you can quickly lock the screen and enter the screensaver program (screensaver). I think most Windows users are familiar with this, so it is good that since it is not provided by default, how do we
What about quick screen lock in X? Here are several methods. Each method has its own merits and is suitable for users with different habits. You only need to select one that suits you and it will be convenient in the future.
As usual, we finally provide a terminal command to facilitate remote management by the system administrator.
1. screensaver:
The most traditional and simple is also provided by the system, which is similar to Windows. Choose your favorite scrensaver In the desktop & screensaver in system preferences, then select "require password to week this computer from sleep or sreen saver in the general label of security in system preferences. "option.
2. display the lock icon in the System menu bar:
For example, click the icon in the upper-right corner of the lock. The first option "lock screen" appears.
How can I display that icon? First, start the keychain application tool (in/applications/utilities) and click
Keychain access, and then select preferences. See, in the general label, select "show status in
Menu bar.
3. Widgets
Locker(Http://www.apple.com/downloads/dashboard/networking_security/locker.html) is such a screen lock widget software.
4. Expose & space method:
This method is quite convenient. As long as you move the mouse to the corner of a set screen, the screen saver will automatically run. See go to System
In preferences, set expose & spaces to enter "Start Screen Saver" in the upper right corner ".
In fact, if you enter desktop & screen saver, there is a button in the lower left corner: hot corners, which also implements this function.
5. Third-party software:
Lock my Mac(Download from: http://mac.softpedia.com/get/Security/Lock-My-Mac.shtml) is a third-party application.
Sizzlingkeys: (Http://www.yellowmug.com/sk4it/) This program is ware, but not paid can also be used, to extras label, set a shortcut key to activate.
Macropolo: (http://www.symonds.id.au/marcopolo/) can also be implemented
6. shell commands:
The following command can display the logon window like Fast User Switching. In fact, the user program currently logged on is still running and the wireless network is not affected,
/System/library/coreservices/menu/extras/user. Menu/contents/resources/cgsession-Suspend
To use applescript, use the following statement:
tell application "Terminal"
do shell script "/System/Library/CoreServices/Menu// Extras/User.menu/Contents/Resources/CGSession -suspend"
end tell
But there is a problem with this command, that is, it allows many users to log on at the same time. In fact, many of the above programs are implemented using this method. For me, this method may be used when I want to temporarily lend my computer to others.
Another way is to directly run the screensaver application, which is not in the/applications directory, but below:
/System/library/frameworks/screensaver. Framework/versions/A/resources/screensaverengine. app
You can create an alias on your own desktop, or drag it to the dock and click it to run it.
7. Custom hotkey activation:
With the foundation of the above 6, we can use another program to customize a system combination key to quickly lock the screen, this program is powerful quicksilver (http://blacktree.com /? Quicksilver ).
First, download the DMG file from the address above, bind it to the downloaded DMG file, and run the program in it. It is an installer to complete the short initial process. We will go to triggers, in this example, add a hotkey by pressing +. The program can be the screensaverengine above. app or cgsessions. set a hot key that you like.
After the definition is complete, I can test it. My test is perfect. It seems that this is the result I want. The only pity is that I need to use third-party software.
Note that it is more convenient to set start at login in its preferences.
7. A creative one:
The idea of the software author is to control the screen lock through a small appliance that he carries at any time. He uses Bluetooth to connect his mobile phone to his Mac machine, once the phone leaves the Mac machine far enough, the Mac machine will automatically lock the screen. I like this idea, but it is a bit difficult to use. I don't want to lock myself because of poor Bluetooth signal.
If you are interested, refer to this site proximity: http://reduxcomputing.com/
You can also see the source code here: http://blog.jankovskyapplications.com /? P = 19