10

I want to hide spotlight from the menu bar

enter image description here

I never click this button.


So I followed the instructions here and used this code to change the Spotlight file in some way:

sudo perl -pi -e 's|(\x00\x00\x00\x00\x00\x00\x47\x40\x00\x00\x00\x00\x00\x00)\x42\x40(\x00\x00\x80\x3f\x00\x00\x70\x42)|$1\x00\x00$2|sg' Spotlight

It hid the menu-bar icon, but it also disabled the +space keyboard shortcut that I use a lot.

Is there a way to hide the icon in the menubar but allowing the keyboard shortcut to work?


I just saw this other question asking the same thing but for Yosemite.

The accepted answer doesn't work for me on High Sierra, and all the other answers suggest using third-party tools like Bartender which I don't want to do.

minseong
  • 8,824
  • 2
    @fsb lmfao the questions are different so I don't think they're duplicates. Who knows, maybe the answers will be similar. – minseong Nov 23 '17 at 15:41
  • This question could probably be closed and the duplicate updated with your additional requirement. – fsb Nov 23 '17 at 15:43
  • 1
    @fsb why would I do that? This is no "additional" requirement, it's a separate question. – minseong Nov 23 '17 at 15:45
  • Were you able to figure this out? – bryan Feb 25 '18 at 20:56
  • 1
    Best thing I could find is an app called Bartender – bryan Feb 25 '18 at 22:07
  • Have you tried dragging the Spotlight Icon off of the Menubar while holding down the Option Key this should remove the Icon from the Menubar (if Apple didn't change that) if this also stops the Shortcut from working (shouldn't if i remember correct) give Alfred (https://www.alfredapp.com) a try works like Spotlight but also has some other nice Features which Spotlight is Missing – konqui Aug 03 '18 at 14:03
  • Haven't found a way to hide it completely, but you can hold Cmd and then drag the spotlight button all the way to the left of the menu bar. – Geekarist Jun 11 '20 at 09:28

1 Answers1

3

The easiest way I know to do this is with a third party app like Bartender (https://www.macbartender.com). The app is used to hide pretty much any menu bar icon, and has a lot of great features. It's kind of a "must have" for and Mac Power User.

makccr
  • 31