Skip to content

Question: How I can deted when focus wrapped #168

Open

Description

@ahmadie

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

Activity

  1. acrisci commented on Dec 7, 2020

    @acrisci
    Member

    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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions