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.
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
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
Sure, here are our guidelines:
https://github.com/swaywm/sway/blob/master/CONTRIBUTING.md
And GitHub's docs on pull requests:
Thank you for the help, it seems easier than I thought (remembered) to contribute to projects
This is resolved by #3145
Most helpful comment
Probably not terribly hard. Looking forward to your patch!