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

Question: How I can deted when focus wrapped #168

Open
ahmadie opened this issue Dec 6, 2020 · 1 comment
Open

Question: How I can deted when focus wrapped #168

ahmadie opened this issue Dec 6, 2020 · 1 comment
Assignees
Labels

Comments

@ahmadie
Copy link

ahmadie commented Dec 6, 2020

In my i3 config I have set
focus_wrapping workspace

This will limit the focus to windows inside the workspace and restrict focusing windows/containers in the next output, but focus will wrap after last window.

Is there any way I can detect that focus was / or will wrapped to previous windows? for example just before or after calling i3ipc.command("focus right")

Thanks

@acrisci
Copy link
Member

acrisci commented Dec 7, 2020

The ipc doesn't give you any info on what window was focused after the command is issued. You'll need to do another command to get the focused window with i3.get_tree().find_focused().

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

No branches or pull requests

2 participants