xborder icon indicating copy to clipboard operation
xborder copied to clipboard

feature request: add borders to unfocused windows

Open acxz opened this issue 2 years ago • 2 comments

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

acxz avatar Apr 11 '22 21:04 acxz

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
     )

...

acxz avatar Apr 11 '22 21:04 acxz

I have a PR #22 which introduces this new functionality

SilverTux avatar Jul 31 '22 13:07 SilverTux