52

How can I hide top bar in Gnome 3.28 Ubuntu 18.04?

How can the hide-top-bar extension be installed?

5 Answers 5

43

First open the terminal and install chrome-gnome-shell package:

sudo apt install chrome-gnome-shell

Then install one of these extensions:

Finally, head over to the GNOME Extensions page for the "Hide Top Bar" extension and enable the ON/OFF switch for the extension to install.

2
  • 4
    The particular "extension to install" is called "Hide Top Bar" (that's obvious from the link, but not from the text of the answer).
    – jez
    Apr 1, 2019 at 19:29
  • 1
    It blows my mind that you have to use a browser plugin to interact with GNOME plugin options. We really need a command line method for this kind of stuff. snaps broke it apparently: askubuntu.com/questions/1034688/… ... Oct 25, 2021 at 14:02
30

For reference, install gnome-tweaks and run:

sudo apt install gnome-shell-extension-autohidetopbar

Then log out and back in. The option to auto hide the top bar will be available from gnome-tweaks tool in the extensions section.

1
11

The simplest and working way I found is to install the Dash-to-Panel GNOME extension. Works like a charm.

Dash to Panel Extension

You can toggle it from the browser itself.

3
  • 4
    I like this answer the most, as hiding the topbar looses a lot of functionality, with this solution you still have the statusbar available and the top bar is removed. WIN WIN Aug 28, 2019 at 6:02
  • 3
    +1 Highly recommended. It comes with loads of other useful customization.
    – Krishna
    Apr 14, 2020 at 16:28
  • 1
    This one is the best!
    – KCK
    Sep 6, 2020 at 7:47
7

I was having the same problem about removing top bar. What I do is hack into the theme css, and edit it in place.

Edit /usr/share/gnome-shell/theme/ubuntu.css, add to the bottom

#panel, #panel * { 
    height: 0px; 
    color: rgba(0,0,0,0); 
} 

The top bar is there, but won't be visible and can't interact with user.

1
  • As @Lee says, it goes at the very end on a new line beneath the final block of css in braces
    – Noel Evans
    Jun 12, 2019 at 13:17
1

gnome-extensions command line

The snapification of browsers broke the chrome-gnome-shell method mentioned at https://askubuntu.com/a/1029905/52975 with error message:

Although GNOME Shell integration extension is running, native host connector is not detected

as mentioned at Although GNOME Shell integration extension is running, native host connector is not detected so if you don't want to find a non snapified browser, you can download the Zip manually from: https://extensions.gnome.org/extension/3906/remove-app-menu/ or:

wget https://extensions.gnome.org/extension-data/hidetopbarmathieu.bidon.ca.v97.shell-extension.zip

You can check your GNOME shell version as shown at: How do I check my version of GNOME-Shell? with either:

gnome-extensions version
gnome-shell --version

to determine which versions are compatible based on the extensions website. Then:

gnome-extensions install hidetopbarmathieu.bidon.ca.v97.shell-extension.zip
gnome-extensions enable [email protected]

As soon as you run enable, the top bar is immediately gone.

I wish we had a more decent standard single command CLI method, see: https://unix.stackexchange.com/questions/617288/command-line-tool-to-install-gnome-shell-extensions

Other extensions of interest:

  • https://github.com/pixel-saver/pixel-saver worked on Ubuntu 21.10, but I think you have to log out and login again. But running this together with [email protected], I managed to remove both the top bar and the title bar on Ubuntu 21.10, effectively making all maximized windows become full screen! You can make them not-fullscreen with the default shortcut Alt + F10 if needed (since there's not title bar to click the unmaximize button on).
  • https://github.com/franglais125/no-title-bar hides the title bar instead of the top bar

Related:

Tested on Ubuntu 21.10.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .