11

How can I control the height of the title bar in xfce?

I only have medium experience with linux desktops, I could change some settings in a text file or install a package, but an instruction that would outline the major steps would be great.

I could not find an answer that I could understand or follow to this question during my searching.

4
  • Have you tried changing the title font size?
    – parkydr
    May 17, 2013 at 11:08
  • I will try and find out how to do that. But my impression is that I will also want to reduce the space above and below the text, which probably won't work that way May 17, 2013 at 18:36
  • 1
    If that doesn't work, you'll have to edit the themes in /usr/share/themes and change the title xpm image files
    – parkydr
    May 17, 2013 at 20:05
  • @parkydr Changing the font size at Settings / Window Manager / Style / Title font does not change the window title bar height. If you choose a large font, it will be only partially visible in the title bar, but the title bar size will not change. Jun 20, 2014 at 0:25

4 Answers 4

4

Go to Settings > Window Manager > Style (first tab)

The height of the title bar in XFCE depends on the "Theme" you choose.

3

I found out it is not possible by changeing some numerical height value, because the height of the window title bar is not dynamically generated. It is drawn based on a graphical element that is part of the theme and this has a fixed height.

To do what I was asking for, it would be necessary to create a new theme that has the desired proportions.

There are also "compact" themes that have more space because they draw some elements smaller, but they are hard to find and it is still not as small as I would like.

1
  • How would one go about doing this? Do I just scale all the images in the xfwm4 folder by the same proportion manually? Mar 8, 2016 at 23:46
3

I solved this issue by editing the xpm-files in /usr/share/themes/

xpm-files can be edited in a text editor.

0

Navigate to ~/usr/share/themes/, find the folder for the theme that you want to change (Greybird-dark in my case) and edit the themerc.txt file in that folder in a text editor opened as root.

The parameters that you want to set/change are detailed here. Replacing defaults where needed, I added

frame_border_top=10
title_vertical_offset_active=6
title_vertical_offset_inactive=6
button_offset=6
button_spacing=2

Once you are done, exit the text editor. Then, change your theme to something else and then change back to the one that you've just changed. That should activate your changes.

Note that these settings will sometimes be overwritten by significant upgrades. For example, I lost them to the Xubuntu 20.04 -> Xubuntu 22.04 jump.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .