223 votes
 
· updated 1 month ago · 20 comments
I've seen that is already implemented for Windows (http://sublimetext.userecho.com/topic/48628-hideshow-menu-bar-shortcut/), but this is not the case on Linux (at least not here). Could you add a setting to disable, or add a shortcut to toggle the menu bar?
 
0
Tadeusz Łazurski
Or at least change it's color. I've just put a separate question for that.
Translation provided by Microsoft translator:

 
+3
Trevor Senior
I just installed SublimeText2 on my Arch setup, and the bar is annoying me in my tiled window manager (i3)... I wonder how I didn't notice it in Ubuntu.
Translation provided by Microsoft translator:

 
+3
Axel Haustant

It's a real lack!!

I'm using ST2 on Windows and Linux and Linux version is less Sublime because of that!

In distraction free it's disturbing and distracting!!

Translation provided by Microsoft translator:

 
+22
Nils R
In Distraction Free Mode the menu bar is annoying and should not be there. Please fix it!
Translation provided by Microsoft translator:

 
+2
Andrei Misarca

I would this very useful, and it would be a great feature

Translation provided by Microsoft translator:

 
0
Bailey C

I'm shocked I can't hide the menu bar on Linux (ubuntu 12.04).

This must be some kind of bug (a huge one!!).


Please fix this soon,

thank you.

Translation provided by Microsoft translator:

 
+2
Eric Drechsel

not a huge bug but would be nice. I'm using a tiling window manager also (xmonad) and it really makes extra UI elements stick out.

Translation provided by Microsoft translator:

 
+7
Zach Martindale

+1 .. completely throws off distraction free mode..

Translation provided by Microsoft translator:

 
+2
Evan Purkhiser

I would also love to see this. I've been attempting to migrate from windows to Linux, but little things like this are holding me back!

Translation provided by Microsoft translator:

 
+1
Daniel Perez

 Little up here. It's one of the thing that is bugging me the most when using Sublime Text, it's really disturbing when using the distraction free mode. I'd really love to see this feature implemented for Linux too in the next nightly.

Translation provided by Microsoft translator:

 
+1
Andrei Misarca

Hi guys, 

I managed to find a simple solution for Linux users who use Gnome3, Cinnamon or other Gnome based desktop.


If you are using Gnome3, you can get a global menu like the one in Unity, and you will not see the menu bar on the top. See the instructions here: http://www.webupd8.org/2011/09/get-global-menu-in-gnome-shell.html 


If you are using Cinnamon (like I do), the things are a little bit more complicated, as there is no global menu for Cinnamon. So, open the link above, and complete the first 4 steps (downloading and compiling global menu). From this point, you can hide the menu for all your GTK apps (not recommended from my point of view) by pasting this line into your terminal:


extern GTK_MODULES=globalmenu-gtk


The better alternative is to hide the menu bar only for sublime text, so you can open sublime text using this command:


GTK_MODULES=globalmenu-gtk /usr/lib/sublime-text-2/sublime_text

(I installed Sublime Text through ppa, this is why I have this path, but in case you just downloaded it, replace /usr/lib/sublime-text-2/sublime_text with the path to the executable)


It is easier to create an executable with this command, so you don't have to paste it all the time. For example, I created two executables for Sublime Text, one that opens it with the menu bar, and the other one that opens it without the menu bar.

Translation provided by Microsoft translator:

 
0
Chris Kahn

The instructions from webupd8 don't work if you're using Gnome Shell 3.6+... the extension doesn't compile.

Translation provided by Microsoft translator:

 
0
Adam Parkes

this does not allow you to press alt to show the menu bar like on windows, without that, even if i was using gnome (shudder to think), it would not be useful

Translation provided by Microsoft translator:

 
+1
Metin Amiroff

 Agree with commenters. Show/hide or maybe color shoul be configurable.

Translation provided by Microsoft translator:

 
+1
Chris Kahn

Please add this feature! It would be especially amazing if you could integrate with Gnome Shell's app menu.

Translation provided by Microsoft translator:

 
0
Shara

pidgin-guiops used hack to hide menu in pidgin conversation window. 

It's open source and you can see how they made it.

I post this query on forum, but haven't got any answer yet.

Technology is easy. You can set menu widget height to 1px.


Here is result:
Window with menu
Window without menu
But really it's 1px menu!


Translation provided by Microsoft translator:

 
0
Michael36

Programmatically, this could easily be solved by employing gtk_widget_show / gtk_widget_hide in my opinion (cf. https://developer.gnome.org/gtk3/stable/GtkWidget.html#gtk-widget-show). Sadly, "visibility" is not a style property of the GtkMenuBar widget that's being used. If it were, a few simple lines in a resource file would have been enough. Alas, no such luck. I suppose this could technically be solved by a GTK module making the necessary modifications on the fly - but that would feel like breaking a butterfly on the wheel...


tl;dr: I, too, would love to see this feature being implemented!

Translation provided by Microsoft translator:

 
+1
Evan Purkhiser

Looking at the Thunar source code (a file manager that lets you hide it's menu bar). It does indeed look like it would be a simple gtk_widget_hide call


http://bazaar.launchpad.net/~vcs-imports/thunar/trunk/view/head:/thunar/thunar-window.c#L1212

Translation provided by Microsoft translator:

Community stats

  • 26,723People
  • 3,763Feedback
  • 5,616Comments
  • 63,234Votes