Skip to main content

i3-orphan

Detect and reparent orphan tabbed/stacked containers in i3.

An orphan container is a tabbed or stacked container with only one child window.

AI-generated and unreviewed.

Installation

pipx install i3-orphan

Usage

# Check if focused window's parent is an orphan
i3-orphan is

# List all orphan containers
i3-orphan list

# Reparent focused window to grandparent (removes orphan)
i3-orphan reparent

# Reparent all orphans recursively
i3-orphan reparent-all

Examples

# Check and reparent if orphan
if i3-orphan is; then
    i3-orphan reparent
fi

# Clean up all orphans in your workspace
i3-orphan reparent-all

How it works

This tool uses i3ipc directly:

  • i3-orphan is checks if focused.parent is tabbed/stacked with only 1 child
  • i3-orphan reparent moves focused to its grandparent using marks
  • i3-orphan reparent-all recursively processes all orphans until none remain

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

i3_orphan-0.1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

i3_orphan-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file i3_orphan-0.1.0.tar.gz.

File metadata

  • Download URL: i3_orphan-0.1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for i3_orphan-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3dd5a2ab49d04ed899f4c59308b7881ed6cb9fbc32e251c8a1d6a3bcbd8d8fff
MD5 4bbb163117ff05350e1dabad8eb3d862
BLAKE2b-256 8b20650a9df49d54dd8e1c7350414478bd85abb5414347ea97823b033d3c07c3

See more details on using hashes here.

File details

Details for the file i3_orphan-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: i3_orphan-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for i3_orphan-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e92466e0c01adcc9bb3fdd02db7713bf8899e9757e535483d349ca2a55066d80
MD5 41553f73700c0459428016418e4467ae
BLAKE2b-256 c175f88c0a2d0fb6d2677341a07e5baf6305d5a1f56e903892316764cea15399

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