Home » Questions » Computers [ Ask a new question ]

Equivalent of Win-L on Mac [duplicate]

Equivalent of Win-L on Mac [duplicate]

What is the equivalent of the shortcut Win + L on a Mac? Eg. the shortcut to lock the computer when you go away from it.

Asked by: Guest | Views: 174
Total answers/comments: 4
Guest [Entry]

"A solution using Quicksilver (or any utility that can bind a keyboard shortcut to an AppleScript):

Create an AppleScript (using /Application/Apple Script/Script Editor.app), containing..

do shell script ""/System/Library/CoreServices/Menu\\ Extras/User.menu/Contents/Resources/CGSession -suspend""

Save it somewhere (~/Library/Scripts/ maybe)
Open the Quicksilver preferences (open quicksilver and press Cmd+,)
Go to Triggers, click Add Hotkey (from the + button)
Find the script, make sure the action is ""Run"" and click save:

Click the Trigger next to the new entry, and press the desired lock keyboard shortcut"
Guest [Entry]

"For 10.6 Snow Leopard, one can easily add a Service using Automator, and then assign any keyboard shortcut using System Preferences. See Fast User Switching/Apple Menu? for details.

/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend"
Guest [Entry]

You can install SizzlingKeys and get keyboard control for iTunes plus features like "Put computer to sleep" or "Lock computer" in the extras preference pane. This works in the free version.
Guest [Entry]

I just found that Google Quick Search Box (which I use instead of Quicksilver) has a command "Lock Screen" that invokes the Login Window like with Quick User Switching enabled. It also shows Command-Alt-L as a keyboard command, but it doesn't work for me.