Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I like fast user switching but I'm not keen on it in my menu bar, I'm wondering if it's possible to put it in the Apple menu? Or somehow change the Logout option in the Apple menu to switch users instead?

share|improve this question

2 Answers 2

up vote 26 down vote accepted

If adding a keyboard shortcut would be acceptable, then one can invoke CGSession -suspend to show the fast user switching. (You can use CGSession -switchToUserID `id -g bob`, for example, to switch to a specific user.)

Searching for that word CGSession will reveal many options, like Equivalent of Win-L on Mac or Create a keyboard shortcut for fast user switching in Mac OS X.

And rather than adding it to the Apple menu, in 10.6 Snow Leopard it's quite easy to add it to the Services menu of each application:

  • Start Applications » Automator
  • Select "Service" for the template of the new Automator workflow
  • In the top of the right pane, select "Service receives no input in any application"
  • Drag action "Run Shell Script" from the left pane into the workflow on the right pane
  • Leave Shell at its default "/bin/bash", and replace the default command cat with the following, without any line breaks:

    /System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend

  • Optional: click the Run button to test
  • Hit Cmd-S to save. The name you type will be the name in the Services menu. The workflow will be saved in ~/Library/Services.

Fast User Switching in Automator

To assign a keyboard shortcut, in 10.6:

  • Open System Preferences » Keyboard » pane Keyboard Shortcuts
  • Select "Services" in the left pane
  • Scroll down to General in the right pane
  • Double-click to the right of the Automator workflow you just created
  • Press the keys you want to use, and switch panes to ensure the new shortcut is saved
    • Please note that in 10.6 there is a bug that might prevent you from assigning services to function keys.
share|improve this answer
That is a very good tutorial. –  Milhous Jul 21 '11 at 19:55

If you're using one of the popular application launchers such as Quicksilver or LaunchBar, check to see if they can bring you to the login window.

In Launchbar, the command is Login Window, part of the User Accounts index.

share|improve this answer

protected by Diago Nov 3 '10 at 17:06

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

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