You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I'm not aware of any way to retrieve the border color of a window. I wish
I had one though, to make chwb more efficient, but as far as I know, the
only way to do it is to request the color of a pixel that's visible on the
border color. It means that this would only work is the border is visible,
which is far from reliable.
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
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 usingbspc config focused_border_color
for this, but since that is a bspwm specific command it isn't very portable.The text was updated successfully, but these errors were encountered: