You are not logged in.

#1 2015-04-10 10:57:31

tsdh
Member
From: Germany
Registered: 2014-01-07
Posts: 55

Reducing the titlebar height in GNOME 3.16

Gnome3 always shipped with these super-huge vertically padded title bars which waste a lot of real screen estate.
Until GNOME 3.16, one could reduce that padding as documented in the Arch Wiki at:

  https://wiki.archlinux.org/index.php/GN … bar_height

However, with 3.16 GNOME has switched to GTK theming with CSS, and there's no

/usr/share/themes/Adwaita/metacity-1/metacity-theme-3.xml

anymore.

Does anyone know how I can reduce the titlebars' heights to some sane value again?

Thanks!

Offline

#2 2015-04-11 09:53:48

biziwalker
Member
Registered: 2015-04-11
Posts: 1

Re: Reducing the titlebar height in GNOME 3.16

I think it's help you: branch on reddit

Offline

#3 2015-04-11 12:07:28

muhammedabuali
Member
Registered: 2015-04-11
Posts: 3

Re: Reducing the titlebar height in GNOME 3.16

Offline

#4 2015-04-11 12:13:03

tsdh
Member
From: Germany
Registered: 2014-01-07
Posts: 55

Re: Reducing the titlebar height in GNOME 3.16

@biziwalker: Do I read that correctly that I would need to write my own stylesheet, i.e., define and maintain a completely new theme (by copying the existing) CSS files from https://git.gnome.org/browse/gtk+/tree/ … me/Adwaita?  Gosh, then I think I'll wait until someone comes up with a Adwaita-Slim theme...

@muhammedabuali: That only deactivates the title bars completely in maximized windows.  Not bad, but I want smaller title bars also for windows that aren't maximized.

Offline

#5 2015-04-11 12:53:02

horst3180
Member
Registered: 2015-04-11
Posts: 3

Re: Reducing the titlebar height in GNOME 3.16

Create ~/.config/gtk-3.0/gtk.css with the following content and restart the shell.

.header-bar.default-decoration {
    padding-top: 3px;
    padding-bottom: 3px;
}

.header-bar.default-decoration .button.titlebutton {
    padding-top: 2px;
    padding-bottom: 2px;
}

You can increase or decrease the padding as you like.

I made a similar post here https://bbs.archlinux.org/viewtopic.php … 8#p1518698 on how to restore the old window decoration style, that might be useful too.

Last edited by horst3180 (2015-04-11 12:53:36)

Offline

#6 2015-04-11 14:23:15

tsdh
Member
From: Germany
Registered: 2014-01-07
Posts: 55

Re: Reducing the titlebar height in GNOME 3.16

@horst3180: Awesome, that does the trick.  Well, even with 0px padding I don't consired the tilebar slim but at least usable again.

Thanks a ton!

Offline

#7 2015-04-11 17:50:15

Trevelian
Member
Registered: 2015-04-11
Posts: 2

Re: Reducing the titlebar height in GNOME 3.16

@horst3180: Hello, i just register on the forum to say :  thank you ! big_smile

Offline

#8 2015-04-11 17:58:05

kjozsa
Member
Registered: 2008-06-05
Posts: 126

Re: Reducing the titlebar height in GNOME 3.16

@horst3180: you saved the day, thank you!

On a side note, while I realize something looking good or usable is a highly subjective topic but I have no idea how Gnome 3.16 could ship with such a default setting sad

Offline

#9 2015-04-11 18:57:20

Netpilgrim
Member
Registered: 2014-02-28
Posts: 11

Re: Reducing the titlebar height in GNOME 3.16

muhammedabuali wrote:

It does not seem to work with Gnome 3.16.

Offline

#10 2015-04-12 10:16:01

muhammedabuali
Member
Registered: 2015-04-11
Posts: 3

Re: Reducing the titlebar height in GNOME 3.16

@Netpilgrim

it works for me after disabling the version validation

Offline

#11 2015-04-12 10:19:09

Netpilgrim
Member
Registered: 2014-02-28
Posts: 11

Re: Reducing the titlebar height in GNOME 3.16

muhammedabuali wrote:

it works for me after disabling the version validation

Could you tell me how to do that?

Offline

#12 2015-04-24 00:25:54

COWBOYCAMILO
Member
Registered: 2015-04-23
Posts: 2

Re: Reducing the titlebar height in GNOME 3.16

To get maximus2 in gnome 3.16 do:

gedit ~/.local/share/gnome-shell/extensions/maximus-two\@wilfinitlike.gmail.com/metadata.json

there, add "3.16" to the list of versions, you'll see: 3.12, 3.13, etc.
Save and restart gnome-shell
Cheers.

Offline

#13 2015-04-24 11:06:16

mrlamud
Member
Registered: 2014-09-27
Posts: 95

Re: Reducing the titlebar height in GNOME 3.16

@horst3180 . Thank you.

Last edited by mrlamud (2015-04-24 11:06:26)

Offline

#14 2015-04-26 17:55:54

Netpilgrim
Member
Registered: 2014-02-28
Posts: 11

Re: Reducing the titlebar height in GNOME 3.16

COWBOYCAMILO wrote:

To get maximus2 in gnome 3.16 do:

gedit ~/.local/share/gnome-shell/extensions/maximus-two\@wilfinitlike.gmail.com/metadata.json

there, add "3.16" to the list of versions, you'll see: 3.12, 3.13, etc.
Save and restart gnome-shell
Cheers.

Thanks for the tip.

There is also a version that already includes this fix, provided by Michael Tunnell for download here.

Offline

Board footer

Powered by FluxBB