Skip to main content

i3wm efficient real estate

Project description

Tests 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.

Project details


Download files

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

Source Distribution

i3altlayout-1.1.1.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

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

i3altlayout-1.1.1-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file i3altlayout-1.1.1.tar.gz.

File metadata

  • Download URL: i3altlayout-1.1.1.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.13

File hashes

Hashes for i3altlayout-1.1.1.tar.gz
Algorithm Hash digest
SHA256 5baf811737db804ad14e6e330b6162c56ba31ccc938f4955e717710efe408677
MD5 f660d8a4f40c9fe57e1449e9b8c1b1fa
BLAKE2b-256 e9589cf2ddff2e5a346bce730335ed005a3973033807c7f0d6aa626dbe5cc270

See more details on using hashes here.

File details

Details for the file i3altlayout-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: i3altlayout-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.13

File hashes

Hashes for i3altlayout-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6a8e071e3253a3719b2a0e2ae0e38ce978cbda9203425b76fe1022d771f66e49
MD5 2e42ad1dfee9b2684f9fb30b63fbab03
BLAKE2b-256 9a52f0bd10bcd1b00d75021ef3c7ab66f78d527c41f6b44805fe9bddd5d661a7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page