Ask Your Question

shrink title bar

asked 2011-11-13 05:28:40 +0000

veyron678 gravatar image

The title bar on the applications are thick, how do I shrink the title bar?

edit retag flag offensive close merge delete


Hi! What DE is this?

FranciscoD_ ( 2011-11-13 06:01:54 +0000 )edit

5 answers

Sort by ยป oldest newest most voted

answered 2012-05-10 17:28:20 +0000

updated 2016-07-27 13:50:20 +0000

Updated solution for Fedora 24

Create a file ~/.config/gtk-3.0/gtk.css containng the following CSS, changing the padding, font-size, etc, to your liking. (Credit for this fix goes to @crobinso who corrected the CSS you can find online for older versions of Gnome.)

headerbar.default-decoration {
 padding-top: 0;
 padding-bottom: 0;
 min-height: 0;
 font-size: 0.8em;

headerbar.default-decoration button.titlebutton {
 padding: 0;
 min-height: 0;

Old Solution (from 2012)

You can use gconf-editor (yum install gconf-editor if you don't have it yet) and change the value for /apps/metacity/general/titlebar_font : a smaller font results in a smaller titlebar. [1]

Alternatively, you can edit your theme to reduce the padding as suggested at http://mikeyshelpdesk.blogspot.com/20... :

  • Open a terminal window
  • Use the command sudo sed -i "/title_vertical_pad/s/value=\"[0-9]\{1,2\}\"/value=\"0\"/g" /usr/share/themes/Adwaita/metacity-1/metacity-theme-3.xml
  • Close terminal window
  • Hit ALT-F2
  • type restart
  • hit enter

Instead of restart you can use r in the command box that pops up.

If your user isn't a superuser, you may need to use su to login as root (assuming you know the administrator password).

NB: I have only used the first method so far, though the comments at [2] suggest that the second method should work as well.

[1] [http://ubuntuforums.org/showthread.php?t=1737632](http://ubuntuforums.org/showthread.php?t=1737632)

[2] [http://mikeyshelpdesk.blogspot.com/2011/04/gnome-3-massive-title-bar.html](http://mikeyshelpdesk.blogspot.com/2011/04/gnome-3-massive-title-bar.html)

edit flag offensive delete link more

answered 2011-11-13 18:14:08 +0000

Mordoc gravatar image

Here's one way to do it:


I used gnome-tweak-tools (Advanced Settings) in the menu and changed the size of the title bar font which helped as well.

edit flag offensive delete link more

answered 2016-04-09 20:27:27 +0000

crobinso gravatar image

I've been using a similar solution to the css bit posted above, but it no longer works on Fedora 24/gnome 3.20. My new working css is:

$ cat ~/.config/gtk-3.0/gtk.css 
headerbar.default-decoration {
 padding-top: 3px;
 padding-bottom: 3px;
 min-height: 0px;
 font-size: 0.6em;

headerbar.default-decoration button.titlebutton {
 padding: 0px;
 min-height: 0px;
edit flag offensive delete link more


This is great for Fedora 24/Gnome 3.20, thanks. Do you also know the changed selector for Gnome Terminal? I used to use 'TerminalWindow .notebook'

dylan ( 2016-07-08 05:12:04 +0000 )edit

How can I remove the horizontal line below the title bar? Where is all that documented? Thanks, Florian

florian ( 2016-09-08 16:30:50 +0000 )edit

answered 2015-09-18 22:01:30 +0000

i used cascading stylesheet on gtk-3.0

  1. Open Terminal
  2. Make file "gtk.css", on /home/(userdirectory)/.config/gtk-3.0/gtk.css
    (example : /home/bandithijo/.config/gtk-3.0/gtk.css)

    $ cd /home/(userdirectory) //change with your username directory
    $ gedit .config/gtk-3.0/gtk.css

  3. And than copy paste code below

    .header-bar.default-decoration { padding-top : 4px; padding-bottom : 4px; }
    .header-bar.default-decoration .button.titlebutton { padding-top : 2.5px; padding-bottom : 2.5px; }

  4. Quit and Save Gedit

  5. Voillaa

// you can change the css padding value if you want

[my computer info]

  • OS : Fedora 22 Workstation with Default Gnome
edit flag offensive delete link more


Works fine in Fedora 23 with Gnome 3.18

florian ( 2016-04-11 14:03:10 +0000 )edit

answered 2011-11-13 14:10:20 +0000

On gnome-shell, iirc this can be done by modifying /usr/share/gnome-shell/theme/gnome-shell.css Not sure though, haven't tweaked gnome-shell myself. Do wait for other replies :)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question Tools



Asked: 2011-11-13 05:28:40 +0000

Seen: 23,778 times

Last updated: Jul 27 '16