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

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

Conversation

sergii-trotsiuk
Copy link
Contributor

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)

"focused": con.focused
})

conn.send(json.dumps(info).encode("utf-8"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utf-8 is the default for encode().

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, fixed

@acrisci
Copy link
Member

acrisci commented Dec 29, 2019

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
Copy link
Member

acrisci commented Dec 29, 2019

👍

@acrisci acrisci merged commit 260235a into altdesktop:master Dec 29, 2019
@sergii-trotsiuk
Copy link
Contributor Author

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

@sergii-trotsiuk sergii-trotsiuk deleted the example/focus-app-and-window-with-history-server branch February 1, 2020 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants