6

I never used window decorations to maximize / minimize windows, but keyboard and mouse/keyboard shortcuts for all operations.

In the good olde days, you could just disable and tweak the window decorations plugin from Compiz settings manager. In 14.04, this is not possible.

How can one get rid of the top window bar with the close / minimize / maximize buttons?

4

Fortunately, all Unity decorations are defined by the Unity gtk3 theme (see this document), and one can remove the top decoration with one little change.

However, just to be on the safe side, I do make a backup copy of a whole theme. Here is what I do:

cd /usr/share/themes
sudo cp -a Radiance Foopance
cd Foopance
sudo cp index.theme index.theme.orig
sudo sh -c "sed 's/Radiance/Foopance/g' index.theme.orig > index.theme"

One last thing to do is to modify (as root) the file /usr/share/themes/Foopance/gtk-3.0/apps/unity.css:

sudo gedit /usr/share/themes/Foopance/gtk-3.0/apps/unity.css

Change the line -UnityDecoration-extents: 28px 0 0 0; to

-UnityDecoration-extents: 0 0 0 0;

This is all it takes. Now you can select the "Foopance" theme using the Unity Tweak Tool. The window decorations will no longer be shown!

  • 1
    How can you make this occur only when the window is maximized? Following your instructions makes all of the window decorations disappear. – Malcolm May 5 '14 at 17:15
  • Just remember to reboot after you've done it. It doesn't hide em', pesky title, bars instantly. – Błażej Michalik May 4 '16 at 18:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.