Is it possible to customize the font size and other properties of the window titlebars in gnome-shell?


You can trim the title bar aspect with

  • Open Terminal

  • Create file "gtk.css", on /home/(userdirectory)/.config/gtk-3.0/gtk.css

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

  • insert 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; }

  • Quit and Save Gedit

  • Restart Gnome Shell (Alt+F2, r)


Install gnome-tweak-tool and under "Fonts" there is "window title font"

enter image description here

  • Thanks that works for font type and size, but I also want to change the titlebars height, color and maybe icons. – nilfric Sep 14 '13 at 13:03
  • @nilfric For that you have to use themes. Google themes or how to create your own theme – khajvah Sep 14 '13 at 13:12
  • Hmm, I hoped there would be a way to change this in gnome-session.css, but I can't find any class that references the titlebar. – nilfric Sep 14 '13 at 14:10

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.