 |
 |
Quick key/command for user switch
|
 |
|
 |
|
Mac Enthusiast
Join Date: Jan 2007
Location: Canada
Status:
Offline
|
|
Been doing some testing this eve and I have been going between two users on my Mac here and right now I have the choice to go up to the top right select the user menu then select the other account I want to enter, but was wondering if there is a quick command for this?
|
|
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Aug 2005
Status:
Offline
|
|
If you use quicksilver you can assign a hotkey to a script such as this:
Code:
#!/bin/sh
USERID=`id -u`;
if [[ $USERID == 501 ]]; then
/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -switchToUserID 502
else
/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -switchToUserID 501
fi;
I especially like this because you don't need to enable fast user switching (though it still does, no logging in each time) so you don't see the icon in the menubar. You may have to change the numbers 501 and 502 to something else (use 'id -u' to determine what your number is) and it doesn't give you a choice as to which user to switch to, though this could easily be done with a parameter to the script.
|
|
|
| |
|
|
|
 |
|
 |
|
Posting Junkie
Join Date: Oct 2000
Location: Los Angeles
Status:
Online
|
|
Good suggestion david, but I wanted to point out that you can hold the command key and drag the FUS menu out of the menu bar if you don't like seeing it.
|

PPC4Ever
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Jan 2002
Location: Durham, NC
Status:
Offline
|
|
Well, if you have Quicksilver and don't mind having FUS turned on, you can also just install the user account plugin. Then launch Quicksilver and start typing the account name. A bit more than one keystroke, but using QS with abbreviations always seems plenty fast to me.
|
|
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Aug 2005
Status:
Offline
|
|
Originally Posted by Big Mac
Good suggestion david, but I wanted to point out that you can hold the command key and drag the FUS menu out of the menu bar if you don't like seeing it.
Just tested it and this doesn't work for me. I enabled FUS in Accounts and command+drag it out of the menubar. It shows the poof animation but replaces itself in the menubar.
|
|
|
| |
|
|
|
 |
|
 |
|
Posting Junkie
Join Date: Oct 2000
Location: Los Angeles
Status:
Online
|
|
|
|

PPC4Ever
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Aug 2005
Status:
Offline
|
|
Originally Posted by Big Mac
Hmm, works here.
Got it. Any time you open the accounts pref pane it reappears and I was trying it with the pane open.
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |