xborder
xborder copied to clipboard
feature request: add borders to unfocused windows
It would be pretty neat to also add borders to unfocused windows.
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
)
...
I have a PR #22 which introduces this new functionality