Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable borders #142

Open
moritzmhmk opened this issue Jan 11, 2025 · 6 comments
Open

Disable borders #142

moritzmhmk opened this issue Jan 11, 2025 · 6 comments

Comments

@moritzmhmk
Copy link

Thank you for this awesome tool!

I think it would be nice to have an option to disable the borders without stopping the borders service, since for my setup I will be enabling and disabling borders often.

I could set the width to 0.0 but will it actually stop borders from rendering anything? I think an option like "style=none" could be a nice addition without introducing new settings.

@Bellavene
Copy link

Why not just kill borders if not needed?

@moritzmhmk
Copy link
Author

Killing borders works fine but starting it again adds a slight delay and sometimes a short flicker.

I have configured my wm to have four modes:

  • normal mode (no borders)
  • focus mode (blue border, hjkl moves focus)
  • move mode (purple border, hjkl moves window)
  • join mode (red border, hjkl joins windows)

In normal mode I like to have no borders and when switching to focus mode regularly even a slight delay is very disturbing.

@Bellavene
Copy link

Bellavene commented Jan 13, 2025

In that situation, I would just set borders color to transparent, so it will avoid any flickering or delay.

@moritzmhmk
Copy link
Author

This actually works better than setting the width to 0 (no more flickering), but it still feels like you're wasting resources by tracking the focused window and drawing the transparent border - but that may not be a real problem.

@Bellavene
Copy link

Bellavene commented Jan 13, 2025

Yeah, I don't see any real problem, neither.

@FelixKratz
Copy link
Owner

You could also use the whitelist for that and create an entry which has no matches to disable the tracking of all windows. However, having style=none is a good idea and is actually very easy to implement. So I would accept a PR for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants