Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
"Move window" command or IPC request #3564
I'm submitting a…
[ ] Bug [x] Feature Request [ ] Documentation Request [ ] Other (Please describe in detail)
In many cases, when improving i3 itself is not an option (e.g. due to low expected usage of the requested functionality), the suggestion is usually to implement it as an additional script, which makes use of i3's IPC interface. From there, it is trivial to query i3's tree and all containers' properties, however manipulating the tree is occasionally non-trivial.
Reducing tree manipulation to a single primitive, it would likely be "move container X into container Y at index Z"; however, there is no such primitive in the protocol, and it is not obvious how to achieve this task through other means.
Aside from certain narrow cases handled by simple commands like
Ideally, there would be a command like:
Used with criteria indicating the container to be moved, this should achieve the goal of allowing moving any subtree to any place in the i3 tree, though other approaches at addressing the general problem likely exist.
Looks like it's by design. The attempt is accompanied by these log messages: