Moving a window while cycling through spaces
- Dominant language
- C
- Stars
- 8.1k
- Forks
- 241
- PR merge metrics
- No merged PRs in 30d
Description
First, I'd like to say I am really enjoying yabai. I've spent some time tweaking my config and have found myself looking for a solution to move windows without explicitly stating which space first.
For example - I'm currently using the following to loop through spaces with `alt + space`:
`alt - space : yabai -m space --focus "$(yabai -m query --spaces --display \ 0 | jq 'reverse | nth(index(map(select(.focused == 1))) - 1).index')"`
Is it possible to select a window, cycle through spaces, and drop it in the active space? This pattern would almost resemble a drag and drop, better yet, select and drop.
Using jq, I'm able to query for the active window id, as far as I know I can't set variables in my skhdrc. Is it possible to store this value somehow? If I could get over this hump I feel like the rest would come together fairly easily.
If I can clarify anything please let me know. It could be that this is simply not possible.
Contributor guide
No contributing guide indexed for this repository
Research direction
The request centers on the skhdrc binding that invokes yabai, jq, and space cycling. Start by checking how commands from skhdrc handle the active window while spaces change. Done would be a confirmed workflow for moving the selected window to the active space, or a clear explanation that this is unsupported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, shell
- Domain
- cli, desktop
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100