Skip to main content

Automatically switch the horizontal/vertical window split orientation in i3 and sway

Project description

autotiling

This script uses the i3ipc-python library to switch the layout splith/splitv depending on the currently focused window dimensions. It works on both sway and i3 window managers.

Inspired by https://github.com/olemartinorg/i3-alternating-layout.

See on YouTube:

Auto-tiling in action

Installation

  1. Install autotiling. Possible methods:

    • PyPi. autotiling is available from PyPi, so you can install it with

      pip install autotiling
      

      NOTE: The current master branch is compatible with sway >= 1.5. For lower versions you need to use the script from the sway14 branch or the 0.9 release.

    • Arch Linux

      Packaging status

      For the latest development version use autotiling-git.

    • Manually

      1. Install the python-i3ipc>=2.0.1 package (or whatever it's called in your Linux distribution).
      2. Save the autotiling.py file anywhere, make executable and autostart in your i3/sway config file: exec /path/to/the/script/autotiling.py on sway or exec_always --no-startup-id /path/to/the/script/autotiling.py on i3.
    • Snap

      snap install autotiling
      
  2. Add exec autotiling to the ~/.config/sway/config or exec_always --no-startup-id autotiling to the ~/.config/i3/config file.

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

autotiling-1.1.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

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

autotiling-1.1-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file autotiling-1.1.tar.gz.

File metadata

  • Download URL: autotiling-1.1.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.4

File hashes

Hashes for autotiling-1.1.tar.gz
Algorithm Hash digest
SHA256 601b04aa4e4ac2b622411710c10afaa0be3ed9ad33fb88f1542e6dde57f29b43
MD5 14247a007814add86c92307f48815676
BLAKE2b-256 bac28d28d8fe4c7c5e624693695bb09476361f88f07634b0d64b9954f0a6edae

See more details on using hashes here.

File details

Details for the file autotiling-1.1-py3-none-any.whl.

File metadata

  • Download URL: autotiling-1.1-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.4

File hashes

Hashes for autotiling-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0c5c7fd5adb8ff030849922229111660b94bcbeed082a3de74bfb06aa9009892
MD5 4d4ebe1aa28286e8db6194e32749208d
BLAKE2b-256 3f353d59e057c4415f10c3debbe0d1a8a68c6de2b6186de78a52538d992a9c60

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