# nwg-piotr/autotiling

Script for sway and i3 to automatically switch the horizontal / vertical window split orientation

Repository: https://github.com/nwg-piotr/autotiling
Canonical: https://ross.abutalabs.com/products/autotiling
Language: Python
License: GPL-3.0
License Family: copyleft
Topics: sway, swaywm, i3, i3wm, i3-gaps, tiling-scripts, tiling-extension
Last push: 2026-07-13T20:21:32+00:00

## Health v2 (maintenance only)
Score: 83/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 92, release rhythm 61, longevity 100
- inputs: {"age_days": 2535, "days_push": 51, "days_rel": 51, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1138, forks 39 (observed 2026-08-28T04:03:43.990930+00:00)

## What it is
A small Python script that automatically switches the horizontal/vertical split orientation of windows in the sway and i3 tiling window managers based on the focused window's dimensions. It uses the i3ipc-python library and runs as a background process started from the window manager config.

## Use cases
- automatically alternate split orientation in i3
- get dynamic tiling like bspwm in sway
- auto split windows vertically or horizontally based on aspect ratio
- enable autotiling only on specific workspaces or outputs
- mimic a master-stack layout in sway or i3

## When to choose
- you use sway or i3 and want automatic alternating splits without a full dynamic tiling rewrite
- you want a lightweight, single-purpose script packaged in most Linux distributions
- you need per-workspace or per-output autotiling control

## When to avoid
- you use stacking or tabbed layouts heavily, as they may behave oddly
- you use a Wayland compositor or window manager other than sway or i3
- you want full dynamic tiling behavior rather than simple split orientation switching

## Facets
- artifact type: cli-tool
- maturity: active
- function: developer-tools, cli
- domain: desktop-applications, developer-tools
- platform: python, cli
- tags: sway, i3, tiling-window-manager, window-management, autotiling, command-line, linux

## Member repositories
- nwg-piotr/autotiling (main) score 83

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:43.990930+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:36:10.414497+00:00, confidence not recorded.
  - readme: https://github.com/nwg-piotr/autotiling (fetched 2026-08-28T04:03:43.990930+00:00, sha 9328c703e49b)
  - registry_pypi: https://pypi.org/pypi/autotiling/json (fetched 2026-08-29T12:41:19.746270+00:00, sha 0e8e80932d1b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
