How do I remove the Spotlight icon from the Mac OS X menubar?

Note, I don't want to disable Spotlight (I use it). I just want to remove the icon.
|
How do I remove the Spotlight icon from the Mac OS X menubar?
Note, I don't want to disable Spotlight (I use it). I just want to remove the icon.
| ||||
|
feedback
|
This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.
|
OK just tested this in SL and it worked, icon was removed but spotlight was still working in Finder:
Now restart SystemUIServer, the icon is gone, Spotlight still works. To get Spotlight icon back:
And restart SystemUIServer again... | |||||
|
feedback
|
|
Snow Leopard and Leopard handle the Spotlight menu very differently. Under Leopard, the Spotlight menu is an application on its own rights. That application is launched by launchd. The menu may thus easily be disabled by modifying the appropriate launchd configuration file. Snow Leopard seems to have revered to the Tiger way of running the Spotlight menu. The menu itself lives in /System/Library/CoreServices/Search.bundle . It is automatically loaded by SystemUIServer.app which is also host to menu extras. While there are preference files allowing us to disable menu extras, I can't seem to find any way to disable Search.bundle The previously suggested option of renaming Search.bundle does work, but comes at a high risk. A future system update may try to update Search.bundle and end up with a partial bundle file. Thus SystemUIServer will crash trying to load that bundle. To be safe, one would need to restore the bundle before each update. Hardly a desirable solution. Moreover renaming Search.bundle or removing read rights affects all users on the machine. A per-user preferences as available under Leopard would be preferable. | |||
|
feedback
|
|
How about doing:
In this way, the Search binary is still read/writable for root and can thus be updated by SoftwareUpdate. Making it non-readable for other users will prevent it from being launched! | ||||
|
feedback
|
|
To hide the Spotlight menu bar item without renaming the responsible bundle and affecting only one user, an ACL entry can be set to deny execution:
Replace USER_SHORT_NAME with the actual short name for the user, who wants the menu hidden. Notice that there is no space in between read and execute, just a comma. To revert the changes replace +a with -a in the chmod command:
| |||
|
feedback
|
|
If you want to still be able to keep all of the functionality of the menu bar spotlight search but have white space for the spotlight in the menu bar you can replace the icon image file with a blank one or your own custom icon. The image file is
Steps:
| ||||
|
feedback
|
|
Quick and easy is to use the free utility OnyX.
Also, I'm using LaunchBar set to use a keyboard shortcut for Spotlight search in LaunchBar (set in LB prefs). This also stops keyboard shortcuts for Spotlight, but not in Finder searching. | ||||
|
feedback
|