Skip to content

Cannot move current focused window to other space from command line #2763

@MikeChristensen

Description

@MikeChristensen

I'm trying to move the currently focused active window to another space from the command line, that way I can bind the command to a shortcut key using skhd.

Steps to repro:

  1. While on space 2, In the terminal (I'm using Ghostty), run the following command:
yabai -m window --space 5

Expected Result:

The current terminal window which has the focus should be moved to space 5.

Actual Result:

The current terminal window disappears from space 2 as you would expect. However, when you then switch to space 5, the window is not there. If you then go back to space 2, the window has returned there again.

Info:

Yabai Version: yabai-v7.1.17
MacOS Verison: Sequoia Version 15.7.4 (24G517) (Apple M1 Max)
csrutil status: System Integrity Protection status: disabled.

Nothing appears to be written to /tmp/yabai_mike.err.log after trying to command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions