altdesktop / i3ipc-python

🐍 An improved Python library to control i3wm and sway.
http://i3ipc-python.readthedocs.io
BSD 3-Clause "New" or "Revised" License
851 stars 109 forks source link

Server and window switchers those do not pay attention on workspaces #141

Closed sergii-trotsiuk closed 4 years ago

sergii-trotsiuk commented 4 years ago

i3 get_tree does not contain information about focus throw all workspaces, so scripts those use it can sort windows only with workspace grouping. So server in this PR accumulates window focus history and does not pay attention on workspaces. And focus-app.py switches apps and focus-current-app-window.py switches windows in current app (like in macOS)

acrisci commented 4 years ago

We actually have a few examples that do something like this but a little bit different. It might be a good project to go consolidate them all into one project.

acrisci commented 4 years ago

:+1:

sergii-trotsiuk commented 4 years ago

Yep, I will try to merge them when I have some time :smile: