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

Get current border color of a window? #63

Closed
Kody-Quintana opened this issue Jan 18, 2021 · 3 comments
Closed

Get current border color of a window? #63

Kody-Quintana opened this issue Jan 18, 2021 · 3 comments

Comments

@Kody-Quintana
Copy link

Is it possible to get the current border color of a window? I have a script that sets the border colors with chwb, I want to capture the original color so I can revert back to it. I'm currently just using bspc config focused_border_color for this, but since that is a bspwm specific command it isn't very portable.

@z3bra
Copy link
Contributor

z3bra commented Jan 19, 2021 via email

@lwilletts
Copy link
Contributor

Could you script it so the previous colour is held in a temporary file?

@Kody-Quintana
Copy link
Author

I'm currently capturing the output of bspc config focused_border_color into a variable so after my script exits I can restore it to that. I just wanted to make sure there wasn't an easy way to get the current window's border color that was agnostic to whatever window manager I'm running.

But after thinking about this some more, for my use case I'd still need a way to determine both the colors for focused and unfocused borders in case my script exits when it isn't in focus, so this functionality is probably outside the scope of what chwb would be able to do

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