Skip to main content

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:

  1. Marks the target container with a temporary mark
  2. Moves the source container to that mark
  3. 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

i3_move-0.1.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

i3_move-0.1.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

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

Hashes for i3_move-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2ca90d6b05c4c187835b5baa838bbefd3649fd3b6c36f61975cb29cfd324511b
MD5 4e5535f00935be667ee04b34b41624cf
BLAKE2b-256 147158fab6521e823096caeedb03ec7f6393c5c8d2e733b432eac9441a5c35d1

See more details on using hashes here.

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

Hashes for i3_move-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7dbdedbc13f2895e3c6e50ded12cd7452a0f6cb682fe3123678bfb5d1c00163b
MD5 b0f280c0a3883e3b9b314367b1ae4d44
BLAKE2b-256 55d6826994fb637091bda4e0fd52d79e7300272b93d52a94870877e160953e27

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page