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

feature request: add borders to unfocused windows #16

Open
acxz opened this issue Apr 11, 2022 · 2 comments
Open

feature request: add borders to unfocused windows #16

acxz opened this issue Apr 11, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@acxz
Copy link

acxz commented Apr 11, 2022

It would be pretty neat to also add borders to unfocused windows.

@acxz
Copy link
Author

acxz commented Apr 11, 2022

Maybe you can get all the window geometries like so:

        get_all_win_process = subprocess.run(
                ["wmctrl", "-l"], capture_output=True
        )
        if get_all_win_process.returncode != 0:
            return None
        get_all_win_process_stdout = \
            get_all_win_process.stdout.decode("utf-8")

        for line in get_all_win_process_stdout.split("\n"):
            win_id = line.split(" ", 1)[0]

            win_data = get_win(win_id)

...

def get_win(win_id):

     completed_process = subprocess.run(
-        ["xdotool", "getactivewindow", "getwindowgeometry"], capture_output=True
+        ["xdotool", "search", "--name", str(win_id), "getwindowgeometry"], capture_output=True
     )

...

@SilverTux
Copy link
Contributor

I have a PR #22 which introduces this new functionality

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

Successfully merging a pull request may close this issue.

3 participants