52

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

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

Kevin Bowen
  • 19,615
  • 55
  • 79
  • 83

5 Answers5

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.

  • 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 01 '19 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: https://askubuntu.com/questions/1034688/url-extensions-gnome-org-for-managing-gnome-extensions-not-working-in-any-browse ... – Ciro Santilli OurBigBook.com Oct 25 '21 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.

Eliah Kagan
  • 117,780
Ali
  • 301
  • 3
  • 2
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.

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.

Lee
  • 385
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 hidetopbar@mathieu.bidon.ca

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 hidetopbar@mathieu.bidon.ca, 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.