Ask Your Question

shrink title bar

asked 2011-11-12 23:28:40 -0500

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_ gravatar imageFranciscoD_ ( 2011-11-13 00:01:54 -0500 )edit

5 Answers

Sort by ยป oldest newest most voted

answered 2012-05-10 12:28:20 -0500

DMH gravatar image

updated 2016-07-27 08:50:20 -0500

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 :

  • 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] [](

[2] [](

edit flag offensive delete link more

answered 2011-11-13 12:14:08 -0500

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 15:27:27 -0500

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 gravatar imagedylan ( 2016-07-08 00:12:04 -0500 )edit

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

florian gravatar imageflorian ( 2016-09-08 11:30:50 -0500 )edit

answered 2015-09-18 17:01:30 -0500

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 gravatar imageflorian ( 2016-04-11 09:03:10 -0500 )edit

answered 2011-11-13 08:10:20 -0500

FranciscoD_ gravatar image

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

Question Tools



Asked: 2011-11-12 23:28:40 -0500

Seen: 27,076 times

Last updated: Jul 27 '16