i3-move
Move i3 window manager containers using a container id (con_id).
You can use the related i3-query (but the same other) to get container ids. The logic for this code is in i3-query - this exists for discoverability.
AI-generated and unreviewed.
Motivation
I was trying to deal with orphaned containers but what having difficulty debugging code so started making "easier" tools for this.
Installation
pipx install i3-move
Usage
Move containers by their con_id:
# Move focused window to container with ID 12345
i3-move focused 12345
# Move container 67890 to container 12345
i3-move 67890 12345
How it works
i3 doesn't have a direct "move to con_id" command, so i3-move handles the mark-based workaround for you:
- Marks the target container with a temporary mark
- Moves the source container to that mark
- Removes the mark
This is the official i3 way to move containers to specific container IDs.
Alternatives and prior work
You can do this programmatically using i3ipc
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file i3_move-0.1.0.tar.gz.
File metadata
- Download URL: i3_move-0.1.0.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ca90d6b05c4c187835b5baa838bbefd3649fd3b6c36f61975cb29cfd324511b
|
|
| MD5 |
4e5535f00935be667ee04b34b41624cf
|
|
| BLAKE2b-256 |
147158fab6521e823096caeedb03ec7f6393c5c8d2e733b432eac9441a5c35d1
|
File details
Details for the file i3_move-0.1.0-py3-none-any.whl.
File metadata
- Download URL: i3_move-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7dbdedbc13f2895e3c6e50ded12cd7452a0f6cb682fe3123678bfb5d1c00163b
|
|
| MD5 |
b0f280c0a3883e3b9b314367b1ae4d44
|
|
| BLAKE2b-256 |
55d6826994fb637091bda4e0fd52d79e7300272b93d52a94870877e160953e27
|