Hi, Adam.
1. There is no 'Lock Screen' option in Keychain Access. There is Edit > Lock All Keychains. Is that what you meant?
It's possible to assign a keyboard shortcut to 'Lock All Keychains' in Keychain Access: see 'Mac OS X 10.4 Help: Creating keyboard shortcuts for applications'. However, note that this keyboard shortcut would only work when Keychain Access is open and has focus.
For a global shortcut, you would have to write an AppleScript to 'Lock All Keychains.' This would require using AppleScript with the Keychain Scripting scripting additions. If you're unfamiliar with AppleScript, this would be an excellent learning opportunity. For details, see Apple's AppleScript web site.
Someone may have already written such a script and made it available. A good place to search for AppleScripts is ScriptBuilders.
One you had such a script, you would then need to use a third-party utility, such as the shareware application iKey, to assign that script to a specific keyboard shortcut. Mac OS X has no built-in feature permitting you to assign applications, such as scripts, to keyboard shortcuts.
2. If you are interested in locking the screen, then you can use built-in facilities to require a password to unlock the screen when your computer is either displaying the screen saver or in sleep mode, as follows:
Good luck!
đ Dr. Smoke
Author: Troubleshooting MacÂź OS X
1. There is no 'Lock Screen' option in Keychain Access. There is Edit > Lock All Keychains. Is that what you meant?
It's possible to assign a keyboard shortcut to 'Lock All Keychains' in Keychain Access: see 'Mac OS X 10.4 Help: Creating keyboard shortcuts for applications'. However, note that this keyboard shortcut would only work when Keychain Access is open and has focus.
For a global shortcut, you would have to write an AppleScript to 'Lock All Keychains.' This would require using AppleScript with the Keychain Scripting scripting additions. If you're unfamiliar with AppleScript, this would be an excellent learning opportunity. For details, see Apple's AppleScript web site.
Someone may have already written such a script and made it available. A good place to search for AppleScripts is ScriptBuilders.
One you had such a script, you would then need to use a third-party utility, such as the shareware application iKey, to assign that script to a specific keyboard shortcut. Mac OS X has no built-in feature permitting you to assign applications, such as scripts, to keyboard shortcuts.
2. If you are interested in locking the screen, then you can use built-in facilities to require a password to unlock the screen when your computer is either displaying the screen saver or in sleep mode, as follows:
1. Open System Preferences > Security.You can't set a keyboard shortcut to invoke the screen saver, but you can set a Hot Corner for it in the System Preferences > Desktop & Screen Saver > Screen Saver tab by clicking 'Hot Corners..'
2. Select 'Require password to wake this computer from sleep or screen saver.'
3. Quit System Preferences.
Good luck!
đ Dr. Smoke
Author: Troubleshooting MacÂź OS X
Winhex for mac. In this video, I will run over how to set up a keyboard shortcut on your Mac that instantly locks your screen, similar to the way 'WIN + L' works on a Window.
Macbook Lock Screen



Macbook Lockscreens
- Oh wow, thanks for that hint A Whitaker! I didnât know they shipped such a feature already with macOS Sierra! You can easily bring it to the menu bar or assign a custom keyboard shortcut to it; and have the same âLock screenâ feature as theyâll introduce with High Sierra.
- Hot keys and media keysThe following hot keys and media keys are available for Windows, Mac OS X, Android and iOS: Key Windows 10 Windows 7 Windows 8 or later Android iOS Mac OS Task View.
- Double-click on the right side of the entry for the Service you created and assign a keyboard shortcut. This was a bit unintuitive, because the shortcut column is not distinctly visible, so it is.