Pretty much every application I use in full-screen (including Firefox, MacVim and the Terminal) have tabs on the top of the screen.
The problem is, when I move my mouse to reach the tabs I'll often accidentally touch the top of the screen, bringing in the OS menu OVER the tabs:
Is there any way to change this behavior? I'd prefer it if the menu bar would stay hidden when I'm using a full-screen app, even if my mouse does touch the top of the screen.
Best Answer
Save the following AppleScript to a file named
fullscreen.scpt
:From terminal, compile it to an application with the following command:
Open the
Full Screen.app
'sInfo.plist
(e.g.vim '/Applications/Full Screen.app/Contents/Info.plist'
) and add the following to thedict
:Add
Full Screen.app
as an exception inSystem Preferences > Security & Privacy > Privacy > Accessibility
.Launch Automator and create a new
Service
.no input
inany application
".Library > Utilities > Launch Application
action.Full Screen
application.Full Screen
and close Automator.System Preferences > Keyboard > Shortcuts > Services
, scroll down to the bottom of the list and the just createdFull Screen
service should be listed there. Associate an unique Command shortcut for it, like Shift+Command+\ or Command+F11 for example.This creates a shortcut to cause an application to enter full screen while removing the menu bar, or to exit full screen bringing the menu bar back. It provides an alternative full screen shortcut!
For application-specific full screen launchers, check my other answer.
Caveats
There may be some disadvantages and/or misbehavior using this approach:
ApplicationType=UIElement
, which causes the application icon not be added/highlighted in the Dock and make the application inaccessible via Command+Tab. The Command+Tab issue was reported in comments, I didn't notice it since I mostly use the Mission Control overview to change between full screen applications.