Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Auto-hide the dock and menubar on a per-app basis System
I've always wanted an preference pane that would show and hide the dock based on which app is in the foreground. This simple plist hack does the same thing on a per-app basis. To hack an app so that when it's active, the menubar and dock are hidden, you need to find its info.plist file. Control-click on the program in question, choose Show Package Contents from the pop-up menu, and then navigate into the Contents folder.

Once there, add the following to the file:
<key>LSUIPresentationMode</key>
<integer>4</integer>
Be sure that it goes in alphabetical order, otherwise it won't work (i.e. LSUIPresentationMode goes after LSMinimumSystemVersion but before NSAppleScriptEnabled). Save the file and enjoy.

[robg adds: You should work on a copy of the app, obviously, in case you make a mistake. I tested this with a copy of Stickies, and it worked great. If you're using Property List Editor (part of the Developer Tools), you don't need to worry about the order; just add a new Child to Root, and it works.

Note that the menubar is not completely gone, it's just hidden, like the dock. Move your mouse up to the top of the screen, and the menubar drops down. You can read about the various LSUIPresentationMode options in this section of Apple's Runtime Configuration Guidelines.]
    •    
  • Currently 2.67 / 5
  You rated: 4 / 5 (6 votes cast)
 
[117,710 views]  

Auto-hide the dock and menubar on a per-app basis | 25 comments | Create New Account
Click here to return to the 'Auto-hide the dock and menubar on a per-app basis' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Auto-hide the dock and menubar on a per-app basis
Authored by: KwisA on Jan 22, '07 08:16:36AM
For Dock hiding i have been using ASM for some time now, It has moor features that i dont use.
I am just using the dock hiding part of this for some app's you just have to add them to a list under Special Features and set dock hiding to ON

This is only for the dock hiding part

[ Reply to This | # ]
Auto-hide the dock and menubar on a per-app basis
Authored by: boredzo on Jan 22, '07 08:24:47AM

Be sure that it goes in alphabetical order, otherwise it won't work (i.e. LSUIPresentationMode goes after LSMinimumSystemVersion but before NSAppleScriptEnabled).

What?

Dictionary files do not have to be in order. They don't even preserve order. As long as you keep the key and value together (i.e. don't put the key at the top and the value at the bottom, or any other combination of non-adjacent positions), and don't mix them into any of the other keys or values or between the key and value of any other pair, it will work, regardless of whether you keep it sorted.



[ Reply to This | # ]
Auto-hide the dock and menubar on a per-app basis
Authored by: conigs on Jan 22, '07 08:30:05AM

This is fantastic. I was actually working on a picture-frame and info station based on an aging G3 Powerbook. I needed an easy way to hide the menu-bar and here it is! (This also works on the Finder.)

Now if only there were an easy way to make this change system-wide instead of per-app...



[ Reply to This | # ]
Auto-hide the dock and menubar on a per-app basis
Authored by: Grommet on Jan 22, '07 09:09:02AM
Auto-hide the dock and menubar on a per-app basis
Authored by: conigs on Jan 22, '07 09:25:01AM

I remember looking at menushade a while back but didn't recall transparency being an option. I see that it now is, however, it still leaves the menu bar shadow visible, and the space is still unusable by anything but the menubar.

What I'd love is something like menushade, but allows you to use the space the menubar usually takes up (which this hint allows you to do).



[ Reply to This | # ]
Auto-hide the dock and menubar on a per-app basis
Authored by: daveedvdv on Jan 22, '07 10:04:00AM

Menufela (ninjakitten.us) allows hiding the menu bar for all apps.



[ Reply to This | # ]
Auto-hide the dock and menubar on a per-app basis
Authored by: friday04 on Jan 22, '07 08:48:45AM

Doesn't quite work with Photoshop CS3. I launch Photoshop and the menubar and dock both disappear. But when Photoshop is fully loaded they both return. Any ideas?



[ Reply to This | # ]
Auto-hide the dock and menubar on a per-app basis
Authored by: hi_there on Apr 16, '08 11:33:30AM

You are not alone. I tried this on multiple applications and it did not work as stated. The dock and menu would be hidden while the application was loading, but then as soon as the application was loaded, both the menu and dock reappear. I give it 1 star for getting my hopes up and wasting my time.



[ Reply to This | # ]
Auto-hide the dock and menubar on a per-app basis
Authored by: hypert on Jan 22, '07 08:49:53AM

Nice hint - thanks! :-)



[ Reply to This | # ]
Auto-hide the dock and menubar on a per-app basis
Authored by: jofizz on Jan 22, '07 12:30:41PM

Fantastic hint! This is something I've wanted to do with my favourite app, Google Earth, for some time, but I have not wanted to install APE. Full screen viewing goodness with just a couple of moments copy and paste. Well done, cheers.



[ Reply to This | # ]
Auto-hide the dock and menubar on a per-app basis
Authored by: osxpounder on Jan 22, '07 09:47:40PM

We are going to appreciate this when we set up kiosks and public displays. Super hint!



[ Reply to This | # ]
Auto-hide the dock and menubar on a per-app basis
Authored by: dsjkvf on Jan 22, '07 10:47:29PM
there's also a free app called DockLess, which perfoms all those changes for you :).

[ Reply to This | # ]
Auto-hide the dock and menubar on a per-app basis
Authored by: zo219 on Jan 23, '07 01:12:52AM

... which has never performed reliably for me, in all the years it's been out. Editing plists is a cinch, tho, with Property List Editor, whiich gets hauled out of the Developer Folder and put right in Utilities. It comes in handy sooo many ways.



[ Reply to This | # ]
Dockless.app
Authored by: Lou Kash on Jan 23, '07 04:01:29AM

Dockless does something completely different: It hides an app from appearing *inside* the Dock and it *removes* its menubar for good. In other words: Dockless turns a full app into an "invisible" background process. I use a couple of apps that require such a treatment although the developers might have done it themselves in the first place, e.g. Hardware Growler or the PageSpinner helper app PageViewer.



[ Reply to This | # ]
Auto-hide the dock and menubar on a per-app basis
Authored by: eliss on Jan 23, '07 01:37:17AM

I've tried applying this on finder, works like charm exept it's disabling spotlight… :/
Any idea ?



[ Reply to This | # ]
Auto-hide the dock and menubar on a per-app basis
Authored by: changcheh on Jan 24, '07 02:25:01AM

How did you manage to do this with the finder? The hint works for firefox and mail for me but, I'd like to do this with preview and finder too.



[ Reply to This | # ]
Auto-hide the dock and menubar on a per-app basis
Authored by: mm2270 on Jan 23, '07 09:30:49AM
This is an awesome hint, and very easy to implement, unlike some other cool hints that require a crazy amount of work.

However, one thing that should be mentioned, if you decide to do this with the Property List Editor (recommended), you need to change the Class for the LSUIPresentationMode entry you create to Number. By default it will come up as String, which will not work. Then for the Value field, put in 4.

[ Reply to This | # ]
Try Megazoomer
Authored by: Viridian on Jan 23, '07 07:24:06PM
John Gruber of Daring Fireball posted a link to Megazoomer just today. Megazoomer is a freeware SIMBL plug-in which, when toggled with Command-Return, enables system-wide zooming of any window to full screen, hiding the Dock and Menu bar simultaneously. Pressing the hot key combo again will return the window to normal. Moving the cursor to the top of the screen will cause the Menu bar to appear, but the Dock will only return when the window is returned to normal. I downloaded and installed it, and it works beautifully. Caveat: it only works with Cocoa apps; Carbon apps such as Finder, iTunes, Photoshop etc, are out of luck.

[ Reply to This | # ]
Try Megazoomer
Authored by: skwerl on Nov 15, '07 08:44:12AM

Why the hell would you want to go full-screen in a document window, unless you're some sort of one-track minded PC user?

Mac windows don't maximize--they zoom to fit their contents. Where it makes sense to present an application full-screen, such as in QuickTime Player or the iTunes visualizer, that option is provided. Anywhere else, maximized windows are sacrilege.



[ Reply to This | # ]
Auto-hide the dock and menubar on a per-app basis
Authored by: vramin on Jan 25, '07 04:19:05AM

This works less than perfectly for me.

You can hide the menu bar in the Finder, but Spotlight stops working.

When using BBEdit with the Finder's menu bar hidden, the Finder's menu bar becomes active when trying to use BBEdit's menu options.

In Firefox, the menus don't work, at least not the history—this was enough to make me remove the edit from Firefox's info.plist.

Did I do something wrong? Hasn't anyone else experienced this behavior?



[ Reply to This | # ]
Auto-hide the dock and menubar on a per-app basis
Authored by: changcheh on Jan 27, '07 03:19:01AM

I get the same behaviour in firefox, but if i want to use the history i can choose "show in sidebar" and it works, i think it's a small price to pay, although i would like it to work properly.



[ Reply to This | # ]
Auto-hide the dock and menubar on a per-app basis
Authored by: ryanbriones on Jan 29, '07 07:09:05AM
I was really excited about this when I saw it on TUAW when reading my RSS feeds this morning, but I didn't read the title close enough. I really wanted this for Photoshop CS2, but when I applied the changes I noticed the menubar hide. Like I said, reading AND comprehending the article and title would have helpful for me. But I checked out the linked docs and decided to use a LSUIPresentationMode of 1, instead of 4, which appears to only hide the dock and do exactly what I want. Thanks for posting this!

[ Reply to This | # ]
Auto-hide the dock and menubar on a per-app basis
Authored by: infrid on Jul 23, '07 03:56:10AM

THANK YOU SO MUCH!!

I signed up just to say thanks. I've been needing this for so long - I use remote desktop in x11 (best windows client) and it's a 'mare always having things stuck under the menu.

THANK YOU THANK YOU THANK YOU!!!



[ Reply to This | # ]
Work with Microsoft Word?
Authored by: jweaks on Aug 28, '07 02:52:05PM

How can I get this to work with Microsoft Word 2004? Does it only work with Cocoa apps?



[ Reply to This | # ]
Auto-hide the dock and menubar on a per-app basis
Authored by: amfairweather on Nov 26, '07 06:51:01PM

This still seems to me like an excellent hint if I were able to implement it properly however so far it has only succeeded in nearly giving me a stroke...

I am a newcomer to the 'mac' world and have only had my macPro (running leopard) a few weeks so it was perhaps slightly over zealous of me to dive into adding lines of code however I was careful to input the code as instructed above and made sure there were no errors...obviously I did something wrong though as I am now unable to boot my machine into Leopard and get instead an unresponsive blue screen of death. I do not even get as far as the log in screen.

I have tried using 'command' + 'S' at start-up. After running 'fsck -y' it tells me the 'HD is ok'.

I originally applied the additional lines of code outlined to the safari info.plist file.

Any and every bit of help would be tremendously appreciated. I am at a total (and panicked) loss...(I dont even care if it involves a fresh intall and loss of all existing data but the cd drawer wont even respond to allow me to insert the Leopard disk!)



[ Reply to This | # ]