deter0 / xborder

Active window border replacement for window managers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for title bar (i3)

jfaltis opened this issue · comments

I am currently using i3 and the border ignores the title bar. It would be cool if it also included the title bar.

for_window [class=".*"] title_format " %title" could be used to add a padding to the title bar text in i3 to not be obstructed by the rounded corners.

I don't know how easy this is to fix but a workaround would be allowing to set the radius of the corners individually. This allows settings the top left and top right corner to radius=0 which would at least result in rounded corners at the bottom.

Great work!

2022-08-23_17-41

commented

Adding support for the i3 title-bar seems a bit specific to i3 and people with title-bars. I think I'm gonna add an offset configuration where you can increase the offset, would that resolve this?

That would likely solve it for people who have all titlebars enabled, but if you disable titlebars i3 will still add them on tabbed and stacked layouts only if there's more than one window.

commented

@coloursofnoise Yeah that is annoying. I have implemented the offsets it should be available in 3.1. Do you have any suggestions on how we could fix it?

Adding support for the i3 title-bar seems a bit specific to i3 and people with title-bars. I think I'm gonna add an offset configuration where you can increase the offset, would that resolve this?

I agree with you. This seems like an appropriate way to fix this.

Do you have any suggestions on how we could fix it?

As far as I'm aware the only viable option would be to check whether the current layout is stacked/tabbed and there's more than one window in it, but that's definitely too specific to i3 in my opinion

commented

Okay, since the offset has been implemented I'm closing this as OP said that would fix it