Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Firstly, let me say that there's two questions on Think Different that claim to answer this question but do not:

  1. Does the MacBook Air have a Fast User Switching (Login Window) shortcut key? The answer to this question seems to "lock" the mac, but doesn't invoke the "Login Window..." command.
  2. Can I assign a keyboard shortcut to bring up the Mac OS X Login Window? The answer to this question provides a shortcut which initiates a log out, not a user fast switch.

So, is there a shortcut for this command?

thanks.

share|improve this question
    
Duplicate of Is there a quick way to lock my Mac?. Personally, I use BetterTouchTool and assign a keyboard shortcut to lock the screen. –  iolsmit Jan 26 '12 at 23:36
    
hey @iolsmit,no it's not a duplicate, as that locks it. I'm interested in fast user switching. The answer is below and seems to be "no" :-( –  andy Jan 27 '12 at 0:19
    
See Fast User Switching/Apple Menu? on Super User. –  Arjan Jan 2 at 21:06

4 Answers 4

up vote 7 down vote accepted

The short answer is no. OS X Lion doesn't have a way to assign a keyboard shortcut to Fast User Switching (which is going to the Login Window without logging off the current user).

There are, however, various alternatives to achieve that. You've pointed to different workarounds (I haven't tested those), I'll name a few more:

  • What I use: Launchbar. Simply invoke it, type "log.." and you already have the option to press enter to go to the login window, can't get much faster than that (you could assign a shortcut to that if you wish).

  • Although I haven't used it in a while, the "competitor" Alfred + Powerpack had something similar, the command was "lock" as far as I can remember.

  • BetterTouchTool: recommended by other users (I've seen this app in friend's Macs but never used it myself). It will also do what you want (shortcut to go to the Login Screen). It's been also recommended in the answers you linked. I add it here for reference and because someone mentioned it in the comments by @Steven Fischer

  • Using pure Scripting like the one used here. Note however, that most of the scripts that you will find, will make you write and hardcode the account's password, which is not a good idea. But if you check there, there's an alternative that doesn't do that. I haven't tested that myself, but if that script works, assigning it to a keyboard shortcut via Automator/Service ought to be a simple task. This Super User answer better explains the process (thanks @andy)

In any case, there's no built in method by default, but as you can see, with some digging and/or third party, you can do it. Using something like Launchbar or Alfred is a good idea for other reasons anyway ;)

share|improve this answer
2  
Maybe this one is a better description for creating an Automator Service and assigning a keyboard shortcut. –  iolsmit Jan 26 '12 at 23:47
    
@iolsmit yep, good catch. –  Martín Marconcini Jan 26 '12 at 23:56
    
+1 Awesome Martin thanks! Yes, I'm using a workaround myself via Alfred. But I just wanted to know if there was a shortcut or not without an app. Thanks so much for the answer! –  andy Jan 27 '12 at 0:17
1  
You can also set up a keyboard shortcut for going to the login screen via BetterTouchTool. –  Steven Fisher Jan 27 '12 at 0:50

There is a fairly convenient, fully native way to do it, with only a small amount of setup. It's not a single keyboard shortcut, but it is a keyboard shortcut.

Summary:

Put fast user switching into the menu bar, then enable a keyboard shortcut to focus it.

Steps:

  1. Go to the Users & Groups pane in System Preferences, then to the Login Options section. Choose to show the fast user switching menu (in any form).

  2. Cmd-drag that new menu item as far left as possible. (This makes it the first to be selected by the keyboard shortcut, but really it can be placed anywhere.)

  3. Go to the Keyboard pane in System Preferences, then to the Keyboard Shortcuts tab. Continue to the Keyboard & Text Input category, and choose a shortcut for the "Move focus to status menus" item.

Result:

If you followed step 2, then pressing your keyboard shortcut will focus the fast user switching menu. You open the menu by pressing the down arrow, then select a choice with either enter or space.

This shortcut lets you directly select a user, so you can choose to bypass the login window or select it from the menu.

I would recommend a shortcut of control + fn + enter, as this puts your fingers on the return key, and hence just above the arrow keys. Plus, I don't know of any other shortcuts it would collide with.

share|improve this answer

If you have the Alfred Powerpack, you could assign a shortcut to the Lock command (which logs out to the fast user switching screen):

Another option would be to save a shell script like this to ~/Library/Scripts/ and assign it a shortcut using FastScripts:

#!/bin/sh

/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend
share|improve this answer

Control - Shift - Eject

OR

Control - Shift - Power Button

share|improve this answer
1  
Control + Shift + Eject immediately sleeps the display on OS X 10.9; is this the behaviour you see? –  Graham Miln Feb 1 at 13:15
1  
The only correct and simple answer. Strange nobody voted for this. –  magikMaker May 9 at 9:29
    
Thank you. This is essentially all I needed. Sleeps the computer and requires a password when awoken. The password part being the important bit. –  Cory Danielson Aug 11 at 19:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.