Ask Your Question
1

Customization

asked 2016-05-10 08:10:47 -0500

albertobarbosa gravatar image

updated 2016-05-10 22:26:31 -0500

florian gravatar image

Hey guys, so i have a few doubts here, first one, is there a way to make the top bar of a windows (the one with the x to shut the window) shorter? It gets a lot of space for me, and the notifications, everytime that a notificaton appears i cant switch tab on firefox because it covers like 3/4 tabs, any solution for this?

Thanks.

edit retag flag offensive close merge delete

Comments

Welcome to ask.fedora. A window's title bar is exactly as wide as the window. If you don't want it going completely across your screen, don't maximize the window itself. If that's not what you're asking about, we'll need some more details, such as what DE you're using. If you don't know, you're probably using Gnome, as that's the default. Please edit your question to give us more information because each person is only allowed to give one answer per question and it would be a shame to waste yours on something like this.

sideburns gravatar imagesideburns ( 2016-05-10 12:41:48 -0500 )edit

What exactly do you mean with shorter title bar? Width or height?

florian gravatar imageflorian ( 2016-05-10 12:58:47 -0500 )edit

Hey, thank you both for answering, i was talking about height. And yes i'm using gnome.

albertobarbosa gravatar imagealbertobarbosa ( 2016-05-10 14:45:13 -0500 )edit

Please use the tags to let us know what Fedora release you are on. Thanks

florian gravatar imageflorian ( 2016-05-16 21:10:55 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2016-05-10 20:24:04 -0500

florian gravatar image

updated 2016-05-11 08:39:19 -0500

You can achieve this by creating a stylesheet for gtk-3.0

  • Create a file "gtk.css", in ~/.config/gtk-3.0/ (e.g. /home/username/.config/gtk-3.0/gtk.css)

    gedit ~/.config/gtk-3.0/gtk.css

  • There paste the following code, then save the file, and restart Gnome Shell (ALT+F2, enter r)

code:

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

Adjust the padding value to your needs. My gtk.css looks like this

edit flag offensive delete link more

Comments

Hey man, you ule, that's exactly what i wanted, thanks, it worked perfectly, altough i couldn't understand the difference between the 2?

THanks

albertobarbosa gravatar imagealbertobarbosa ( 2016-05-11 03:14:42 -0500 )edit

Ah, this is for the padding of the buttons in the title bar (e.g. minimize and close). There is plenty more customization possible. Just google for "GTK 3 css style gnome" or similar. I personally think an additional border : none; makes it look better... see here

florian gravatar imageflorian ( 2016-05-11 12:19:05 -0500 )edit

This doesn't work on Gtk+ 3.20 (Fedora 24) any more. Thanks anyway!

genodeftest gravatar imagegenodeftest ( 2016-05-11 15:54:37 -0500 )edit

Hey, that border : none command would be perfect, but it's not working for some reason.

Screenshot here: http://imgur.com/1DQknIf

Thanks

albertobarbosa gravatar imagealbertobarbosa ( 2016-05-12 11:39:44 -0500 )edit

@genodeftest: Thanks for the info. Why is that? What has changed in gtk 3.20? Do you mind elaborating or maybe just linking some background information?

florian gravatar imageflorian ( 2016-05-16 20:19:32 -0500 )edit
0

answered 2016-05-10 15:16:20 -0500

sideburns gravatar image

OK, I use Xfce, not Gnome, but this will probably work in any DE. Under Settings, open up your Theme Editor. (I'm using Emerald, so it's called Emerald Theme Manager; YMMV, of course.) Your current theme will be selected, so go to Edit Theme->Titlebar. As you make changes, they should take effect right away, but if not, switching from one desktop to another will let you see the new look. Be sure to make a note of how things are set before you make any changes so that you can back out if things aren't right. Let us know if this works, because if it doesn't, I'm sure that somebody else here will know what to do.

edit flag offensive delete link more

Comments

Hey, thank you for answering, i couldn't find the Theme editor that your saying, searched for editor and theme and nothing shows up.

albertobarbosa gravatar imagealbertobarbosa ( 2016-05-11 03:09:23 -0500 )edit

Did you try looking for Manager? After all, the program isn't a theme editor, it's a theme manager. And, it's possible that Gnome prefers to hide things like that from you and you'd need to install it separately. Still, you seem to have found an answer and that's all that really matters.

sideburns gravatar imagesideburns ( 2016-05-11 10:34:48 -0500 )edit

Yes, but if your option is more, let's say, graphical, it would be better, still, didn't find anything with "manager", i would have a look on some extensions. THanks

albertobarbosa gravatar imagealbertobarbosa ( 2016-05-12 11:31:01 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2016-05-10 08:10:47 -0500

Seen: 932 times

Last updated: May 11 '16