Sway: Titlebars longer than on i3

Created on 15 Nov 2018  路  11Comments  路  Source: swaywm/sway

sway version: sway version 1.0-beta.1-186-g47cca240 (Nov 13 2018, branch 'master')

Sway's titlebars are quite a bit longer than on i3 and waste more space (there's more space below and above the window title text). It's sorta annoying because I use the tabbed layout a lot.

The font size doesn't affect this. Is there any way to shrink them in height? I haven't found anything in the manpages or the wiki.

Most helpful comment

Probably not terribly hard. Looking forward to your patch!

All 11 comments

You might be looking for TITLEBAR_BORDER_THICKNESS and TITLEBAR_V_PADDING in include/sway/tree/container.h, I changed their values to 0 recompiled and now I have thin titlebars ;)

Thank you! How hard would it be to make this a configurable property inside the config file? It's a shame that they're hardcoded.

Probably not terribly hard. Looking forward to your patch!

Does i3 have a way to configure those?

I've been toying around with it a little, here is a little patch, just a POC, It has been a long time since I wrote any meaningfull line of code, so the quality should be considered very low. I've proposed three commands : titlebar_v_padding titlebar_h_padding (titlebar_border_width) titlebar_border_thickness

Regards

patch.txt

I would prefer titlebar_padding which, if given one argument, applies padding to both, if given two arguments, applies padding on both axes, and if given four arguments, specifies each dimension explicitly.

(We should be having this discussion on the pull request, though - can you open one?)

I'm new to this but interested, I read the guidelines and go through the process

Thank you for the help, it seems easier than I thought (remembered) to contribute to projects

This is resolved by #3145

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mcmfb picture mcmfb  路  3Comments

ddevault picture ddevault  路  3Comments

dnkl picture dnkl  路  4Comments

Alphare picture Alphare  路  3Comments

DpoBoceka picture DpoBoceka  路  4Comments