Friday, April 15, 2011

Gnome 3 Massive Title Bar

Seems they were planning on doing something with the title bar so made it frigging HUGE!   This might be ok on a 22" monitor but netbooks this will be an issue.   Most of the space is controlled in the main theme XML file.  So to make much much smaller run:

  • Open a terminal window
  • 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
This will change the title_vertical_pad from 14 (on normal font size) to 0.  Then restart the gnome-shell without you having to log-in/out or lose what your working on.

There's talk about creating a netbook theme but until they do the above will do the trick.


  1. Thanks, this is one of the biggest problems with gnome 3 and you have solved it for me.

  2. Thank you so much for sharing this !!! :)
    I personally use XFCE + Compiz + KDE4 Window Decorator (since Compiz 0.9.5 does not support Emerald themes anymore) but your tip helped me on slimming down the title bar on clients laptop. Already saved it on my google docs !

  3. This is just what I needed. Many thanx!!

  4. it didnt work for me :( plz help. could it be because im on 12.04

  5. thanks for solving this. for me.

  6. This comment has been removed by the author.

  7. Thanks Michael,

    Works on Ubuntu 13.04 + GNOME Shell 3.8.2.

  8. Many thanks! Works also on Fedora 20 with GNOME Shell

  9. Excelent! Worked on Ubuntu 13.10 with GNOME Shell

  10. Works well enough, thanks. However makes close button X look like dot (at least on Fedora 20). Any idea how to fix?

    1. Best I found was to edit "/usr/share/themes/Adwaita/metacity-1/metacity-theme-3.xml" and change all the values of "title_vertical_pad" to "2", except the one that has the comment saying it has to be one smaller (make that "1"), and then set the value of "D_icons_shrink" to "3", and "D_icons_grow" to "3".
      This doesn't save quite as much space as the method in the original post, but it does leave you with buttons that still look right.

    2. sudo sed -i "/title_vertical_pad/s/value=\"[0-9]\{1,2\}\"/value=\"5\"/g" /usr/share/themes/Adwaita/metacity-1/metacity-theme-3.xml