I’d like to assign an “Every Application” keyboard shortcut to bring up the login window, for when I step away from my computer. Is there a way to do this? (Lion-only methods are fine.)
|
|
I realise that this thread is probably quite old by now, but for all the options that has been given here, the simplest way has not been discussed. Apple allows you to lock your screen with a keyboard shortcut. You don't have to create one, there is one built right in to OSX — via the “Require password after sleep or screensaver” feature. Here is how to use it:
To do this, follow these steps:
When now when you want to lock your Mac, simply use the keyboard shortcut Ctrl ⌃ + Shift ⇧ + Eject ⏏ |
||||
|
|
Press Shift-Cmd+Q. Make sure that "Reopen windows when logging back in" is checked. Press enter. Thanks to Lion, when you log back in, everything will look the same. |
|||||||||||||
|
|
Another way to log out to the fast user switching screen is to assign a shortcut to this shell command:
If you have the Alfred Powerpack, you can assign a shortcut to the lock action, but just typing "lock" doesn't take that much longer.
|
||||
|
|
You could also set an Applescript to click the "Login Window" menu item after a certain amount of time:
If you want to navigate the menubar, the script goes something like this:
|
||||
|
|
|
You can use Better Touch Tool (link) to create a multi-touch gesture or a shortcut to get to the login screen: Multi-touch gesture
Keyboard Shortcut
|
|||
|
|
|
This may not answer your question entirely, but at least it is a step in the right direction.
|
|||||||||
|
|
If you want to assign alt ⌥+cmd ⌘+L to lock screen without installing any programs, in 5 minutes, I suggest you doing these three steps:
Done. (For step 2 cudos goes to Lauri Ranta!) |
||||
|
|






