Make your Gnome title bar smaller – Fedora 24 update

I wrote similar post before about making the massive title bar in Gnome smaller. But it doesn’t work anymore in Fedora 24!

Don’t worry, I have created an update for you – so you can enjoy more space on your desktop again!

gnome-window-title-barAll you need to do is to put the following css code into ~/.config/gtk-3.0/gtk.css

window.ssd headerbar.titlebar {
    padding-top: 4px;
    padding-bottom: 4px;
    min-height: 0;

window.ssd headerbar.titlebar button.titlebutton {
    padding: 0px;
    min-height: 0;
    min-width: 0;
  • Linh

    Nice, I have never known that we can do it. With this way, I can modify style of terminal in depth.
    Thank you.

    • Adam Šamalík

      You’re welcome!

  • I don’t have that file. Do I need to create it by myself?

    • Adam Šamalík

      Yes, you need to create it. Then you can just press alt+f2, type “r”, and press enter.

  • Mauricio

    Excellent tip. Works like a charm, thank you!

  • Pingback: Titelleiste bei GTK3 Anwendungen verkleinern ›

  • When you first arrive on this web page, you might see a notice that it can’t detect Gnome running on your computer, and a query from your browser asking if you want to allow “Gnome Shell Integration” to run.

    • Adam Šamalík

      Not sure what do you mean. This has nothing to do with a browser. You just need to create a file on a local filesystem. Could you please provide more details?

  • Thorsten Leemhuis

    TWIMC: If you want to reduce the size of the title bar font add something like font-size: 0.6em; in the first section.

  • ahloi

    strange this is not working for me.i put the css file in home ~/.config/gtk-3.0/ .
    maybe the newest gtk update fom repo break this method.(got the newest gtk update today from repo)

    • Anonymous

      Did you reload your session? It doesn’t take effect immediately.

  • Fan

    Really nice! Where did you find this information about what file to edit? I want to change the font for the gnome-shell (for 3.22) but couldn’t find any useful reference out there.

    • Adam Šamalík

      Thanks! To be honest, I don’t remember. I did some googling, found a few solutions that either didn’t work or the result wasn’t very nice, and combined them together to produce this. But I didn’t find a documentation for tweaking Gnome CSS.

  • Josh

    Works like a champ on Debian 9.0, GNOME 3.22.2! Thanks, Adam!

    • Adam Šamalík

      Good to hear it works on other distros as well! 😉

  • Thank you so much! This works great for MATE desktop using Mutter in Arch Linux. This saves me 16px of vertical real estate per opened terminal, and I have only 1050px…