Saturday, July 2, 2016

Fedora 24 Gnome Shell Window Size

To make the default title bar smaller in Gnome 3.20 on Fedora 24 create the following file and restart with "killall -3 gnome-shell".
$ cat ~/.config/gtk-3.0/gtk.css 
/* shrink headebars */
headerbar {
    min-height: 24px;
    padding-left: 2px; /* same as childrens vertical margins for nicer proportions */
    padding-right: 2px;
}

headerbar entry,
headerbar spinbutton,
headerbar button,
headerbar separator {
    margin-top: 2px; /* same as headerbar side padding for nicer proportions */
    margin-bottom: 2px;
}

/* shrink ssd titlebars */
.default-decoration {
    min-height: 0; /* let the entry and button drive the titlebar size */ 
    padding: 2px
}

.default-decoration .titlebutton {
    min-height: 16px; /* tweak these two props to reduce button size */
    min-width: 16px;
}
$