48

(Ubuntu 13.04 with GNOME Shell, upgraded, GNOME version 3.8)

Recently, I upgraded Ubuntu to 13.04. the default desktop is gnome-shell.

Except Nautilus, other software border doesn't disappear when I make them to be maximized. I checked the problem for these software:

  • LibreOffice
  • Firefox
  • Rhythmbox
  • thunderbird
  • GNOME-Terminal

On the other hand there are three bars on maximized mode:

  1. GNOME Shell panel

  2. Title-bar for software which contains - + x (minimise, maximise, close) buttons.

  3. Software menu-bar

    Number "2" is extra. Is a package missing?

pomsky
  • 68,507
mini
  • 2,325
  • 8
  • 35
  • 53
  • Have you installed any gnome shell extension ? Because installing maximus gnome shell extension hides the title bar. – mac May 03 '13 at 10:42
  • Hover over the top-most bar and send the screenshot for the same. It must show menus while hovering... – Kalpesh Panchal May 03 '13 at 12:57
  • @mac, maximus doesn't work on Gnome 3.8; I've used the following repository to promote the gnome version after upgrading to 13.04: ppa:gnome3-team/gnome3 – mini May 04 '13 at 09:03
  • Can you explain more of what the actual problem is? Do you want to remove the title-bar on all applications? Or stop them from hiding? – l300lvl May 11 '13 at 05:33
  • @l300lvl, I want it to be disappeared when the window is maximized! Nautilus does it well (img), but the other software don't! (firefox). – mini May 11 '13 at 05:59

9 Answers9

60

There's a much easier way than editing config files - simply add Pixel saver extension to get rid of the title bar and reclaim your screen space.

It has the added benefit that you still get maximise/minimise buttons but these are now stowed away in the top panel.

I previously used Maximus but this seemed to break with gnome 3.8 - Maximus also use to give me issues with pop-up calendars for my bank but this extension play nicely with that too.

Robbie C
  • 659
  • 7
  • 3
25

A quick and simple fix for this can be found on webupd8. To test this quickly without much work, just launch:

gnomesu gedit /usr/share/themes/Adwaita/metacity-1/metacity-theme-3.xml

Now find this next line, Ctrl+f to search, you want to be sure it is the line that reads name=max:

frame_geometry name="max"

change that so it looks like this:

frame_geometry name="max" has_title="false" 

Now restart the shell to view the changes, Alt+F2, type r, and Enter/Return.

To further customize this you should examine the above webupd8 article and make your changes carefully, or paste the entire contents of the frame_geometry style including everything between:

<frame_geometry name="max"...> ... </frame_geometry>

As you will see with the above edit, the entire title bar isn't gone, a small portion remains. But I did not make the other changes and the contents of that stylesheet differ between shell versions, read below for another change I tested. I am also running 3.8 though, so I went ahead and did some testing and I made one more change under frame_geometry=max I changed the following value from 8 to 0:

<distance name="title_vertical_pad" value="0"/>

You'll notice the difference now, and there's still a bit of a shadow left over, but it actually looks pretty good to me.

David Foerster
  • 36,264
  • 56
  • 94
  • 147
l300lvl
  • 1,182
  • 3
    Wow, thanks; If you change top & bottom for name="title_border" and name="button_border" to zero, the bar will be disappeared fully :D – mini May 11 '13 at 19:57
  • Sweet. I'm gonna do that to now that I'm actually using this. I looked for duplicated as well but yours is the only post asking for a method to remove them entirely, other people don't like the feature much and wanted the reverse effect. After seeing your post and getting it working again in 3.8, I'm thankful because I actually missed this feature! – l300lvl May 11 '13 at 20:59
  • I sometimes lose my settings whiyin metacity-theme-3.xml file after updating system. It occurred over by over :( – mini Jun 26 '13 at 20:09
  • @deroot You loose those changes because the whole file is being replaced. I don't think it can be helped as it's rather hard to distinguish between your changes and those introduced by the new version so the update process can't really "cut out" your modifications and "paste them back" after update. If I were you I would keep a backup and run a diff -u against the new version to see what changed exactly and to make corrections if necessary. – cprn Sep 15 '13 at 07:39
  • 1
    button_height="0" seemed to help to. – Brady Trainor Feb 16 '14 at 17:28
  • I can't get anything to work. I still have a tiny grey bar at the top of all my windows. Ideally I could turn that grey bar black to match with the rest of the theme I've got going. But no luck. Here's my question: http://stackoverflow.com/questions/23900779/how-can-i-change-the-title-bar-of-a-gnome-theme-to-black – Costa Michailidis May 28 '14 at 03:07
  • This worked very well. But could be this done for a single app only? Some script perhaps? – Shashwat Black Sep 29 '15 at 10:14
18

Update from 2018: pixel-saver is pretty much abandoned project, as mentioned here

It also has a lot of open issues, like this.

But fortunatelly, we can install no-title-bar which works great and seems more active.

  • Just wanted to note that this post is out of date. Pixel-saver was adopted by new maintainers and has seen many updates since this post. – John Eikenberry Feb 06 '22 at 21:11
5

Even though it sounds tempting to use a GNOME extension for this purpose, it seems to me like this is not the most elegant way. After all, it's a change to the window decorations, hence it should be covered by the window theme.

However, changing the global Adwaita theme in /usr/share/themes isn't any better, because your package manager will overwrite changes with every update. Because of that, I used to have a copy of the Adwaita metacity theme with the necessary changes described in the above answers. Whenever there was an update to gnome-themes-standard I used to update my custom theme by applying a patch file (https://gist.github.com/ajashton/1258443) to the Adwaita metacity theme.

But patch would soon complain about changed line numbers (due to the updates by the GNOME devs). So I decided to write down the necessary changes in an XSLT script that would be almost completely resistant to future changes by the GNOME devs:

https://gist.github.com/tuxor1337/74e76d3d153c67593454

thomas
  • 151
2

Just for update: current solution would be to install maximus extension. It's author already fixed it for Gnome 3.8 - there's a mini how-to in franz91's comment.

cprn
  • 1,169
  • 2
  • 12
  • 22
  • 1
    kind of dead project now... – mikakun May 16 '14 at 13:11
  • 1
    Well, it is an old answer to an old question. Currently applications handle redrawing the title bar themselves and those which don't have plug-ins available (like HTitle for Firefox and Thunderbird). – cprn May 16 '14 at 14:57
1

The previous extensions seams to be abandoned or no more compatible, I've found this extension https://extensions.gnome.org/extension/4630/no-titlebar-when-maximized/ that do the job.

0

In reference to the answers by

the 'No Title Bar' extension (a more featureful fork of 'Pixel Saver'), is now seems abandoned too; with the last officially supported GNOME Shell version being 3.30. Thus 'No Title Bar' would probably not work properly in recent Ubuntu versions, e.g. Ubuntu 20.04 LTS (Focal Fossa) which comes with GNOME Shell version 3.36.

An alternative extension (which is being maintained currently) for newer Ubuntu releases is No Title Bar - Forked by BebopxD.

No Title Bar removes the title bar from non-GTK applications and moves the window title and buttons to the top panel.

Titlebars are also hidden for Wayland-native clients that don't use CSD. Some of the options may be incompatible with this.

'No Title Bar - Forked' extension by BebopxD

P.S. Refer to this to learn about installing and managing GNOME Shell extensions: How do I install and manage GNOME Shell extensions?

pomsky
  • 68,507
0

For gnome shell <= 3.8 You can use Maximus, but it doesn't work on newer versions. For new gnome versions there's Maximus 2 right from the gnome extensions directory.

Steel Brain
  • 215
  • 1
  • 10
0

others already spoke about maximus, I will just put it differently (simpler):

  1. sudo apt install maximus it is currently version 0.4.14-3.
  2. start it on terminal maximus & disown. (can close terminal now.)
  3. add it at start-up applications for next boot.

Reviewing

maximus actually tries to maximize ALL windows it can, even windows that should never be maximized, and by having no command line options, we cant limit it to ONLY ALREADY MAXIMIZED windows (so that it would work its magick and ONLY remove the window title bar). So, I am disabling it now until I find something more fit to my needs.

obs.: ubuntu 16.04 here

PS.: why am I using metacity on Ubuntu?

my monitor is broken and I use nomachine on an old notebook, as the performance for games and videos is better on a 2D window manager than in a 3D one (in case that extra info is useful to someone else).

David Foerster
  • 36,264
  • 56
  • 94
  • 147