Skip to main content

Build Status PyPI version Python License: GPL v3

I3ALTLAYOUT

i3altlayout helps you handle more efficiently your screen real estate in i3wm by auto-splitting windows on their longest side.

If you open 4 windows, your workspace would look

             like this                               instead of this

+-----------------------------------+        +---------------------------------+
| +--------------+ +--------------+ |        | +-----+ +-----+ +-----+ +-----+ |
| |              | |              | |        | |     | |     | |     | |     | |
| |              | |      2       | |        | |     | |     | |     | |     | |
| |              | |              | |        | |     | |     | |     | |     | |
| |      1       | +--------------+ |        | |  1  | |  2  | |  3  | |  4  | |
| |              | +--------------+ |        | |     | |     | |     | |     | |
| |              | |      ||      | |        | |     | |     | |     | |     | |
| |              | |   3  ||  4   | |        | |     | |     | |     | |     | |
| +--------------+ +--------------+ |        | +-----+ +-----+ +-----+ +-----+ |
+-----------------------------------+        +---------------------------------+

Installation

Install the script from pypi

$ sudo pip3 install i3altlayout

Offline installation

Either install the dependencies and copy the i3altlayout.py file:

  • i3ipc (python3-i3ipc on debian/fedora)
  • docopt (python3-docopt on debian/fedora)

Or package the pypi package:

## on online host
$ mkdir -p /tmp/i3altlayout && pip3 download -d /tmp/i3altlayout i3altlayout

## move the /tmp/i3altlayout directory to the offline host

## on offline host
$ sudo pip3 install --no-index --find-links=/tmp/i3altlayout i3altlayout

Usage

Start the script directly with i3 by adding it to your config file (usually under ~/.config/i3/config):

exec --no-startup-id "i3altlayout"

Or test it by running it from the command line (i3altlayout) and open a few windows.

Related projects

This project is similar to i3-alternating-layout but uses the i3ipc library instead of the unmaintained i3-py library.

Contribution

If you are having trouble installing or using i3altlayout, open an issue.

If you want to contribute, feel free to do a PR (please follow PEP8).

License

This project is licensed under the terms of the GPLv3 license.

Release files for i3altlayout 1.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for i3altlayout 1.1.5
File Size Uploaded
i3altlayout-1.1.5.tar.gz 16.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for i3altlayout 1.1.5
File Interpreter ABI Platform
i3altlayout-1.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 33.1 kB

Release files / i3altlayout-1.1.5.tar.gz

Download URL i3altlayout-1.1.5.tar.gz
Size 16.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2c1e4475569307667a2facfd44493a4132f6daa94a0cfa1af8e11692c52cf207
BLAKE2b-256 checksum
How to use checksums
15c79812a32418b05dd6de8bbd8b8a830616f47230cf824c63480f22c6a1bdda
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.18

Release files / i3altlayout-1.1.5-py3-none-any.whl

Download URL i3altlayout-1.1.5-py3-none-any.whl
Size 16.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dba09c01efb7310dd673f9e6c9b5df9916fc82c554212914ff5d3cdec3faab3d
BLAKE2b-256 checksum
How to use checksums
177449a3e2d4d3cc44bd8ecf0a65f5e03acf505815b9d253d9abb67a80a5fd5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.18

Release history Release notifications | RSS feed

This release

1.1.5 This release

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1

2 release files

1.0

2 release files

0.3

2 release files

0.2

2 release files

0.1

2 release 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