The title bars in the Gnome Shell desktop environment by default are much too thick. This simple code sample will make them thinner. Just create this file.
~/.config/gtk-3.0/gtk.css |
Then put this code into it. Updated for Gnome Shell on Ubuntu 18.04.
# Gnome 3 - based on https://blog.samalik.com/make-your-gnome-title-bars-smaller/ .header-bar.default-decoration { padding-top: 1px; padding-bottom: 1px; font-size: 0.5em; } .header-bar.default-decoration .button.titlebutton { padding: 0px; } # -------------------------------------------------- # Gnome 3.20+ - based on https://blog.samalik.com/make-your-gnome-title-bar-smaller-fedora-24-update/ window.ssd headerbar.titlebar { padding-top: 1px; padding-bottom: 1px; min-height: 0; } window.ssd headerbar.titlebar button.titlebutton { padding: 0px; min-height: 0; min-width: 0; } headerbar { min-height: 0px; padding-top: 2px; padding-bottom: 1px; padding-right: 1px; padding-left: 1px; } headerbar entry, headerbar spinbutton, headerbar button, headerbar separator { margin-top: 0px; margin-bottom: 0px; } .titlebar { min-height: 0px; } |
Log out of Gnome Shell and back in again. I could not use the restart command on Wayland. Then the titlebars will be much thinner than default. This is a great way to improve the desktop environment on a smaller screen. I am annoyed they changed this in 18.04, but this does work.
Worked like a charm on gnome 19.10.
Thank you very much!!!! The default is too thick, waste lot of space and didn’t look good.
Doesn’t work on Fedora 30 with GNOME 3.32
I tried the Fedora 30 release and the networking does not even work in VMWare after installation. It is useless for anything. Maybe try CentOS instead.
Hey Thanks! This still works in Ubuntu 18.10 with GNOME 3.30 btw! Cheers.
Thanks worked on my Ubuntu 18.04.1 running wayland :-)
does not work on 18.04.1
:(