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:
Installation
-
Install autotiling. Possible methods:
-
PyPi. autotiling is available from PyPi, so you can install it with
pip install autotilingNOTE: 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
For the latest development version use autotiling-git.
-
Manually
- Install the
python-i3ipc>=2.0.1package (or whatever it's called in your Linux distribution). - Save the
autotiling.pyfile anywhere, make executable and autostart in your i3/sway config file:exec /path/to/the/script/autotiling.pyon sway orexec_always --no-startup-id /path/to/the/script/autotiling.pyon i3.
- Install the
-
Snap
snap install autotiling
-
-
Add
exec autotilingto the~/.config/sway/configorexec_always --no-startup-id autotilingto the~/.config/i3/configfile.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
601b04aa4e4ac2b622411710c10afaa0be3ed9ad33fb88f1542e6dde57f29b43
|
|
| MD5 |
14247a007814add86c92307f48815676
|
|
| BLAKE2b-256 |
bac28d28d8fe4c7c5e624693695bb09476361f88f07634b0d64b9954f0a6edae
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c5c7fd5adb8ff030849922229111660b94bcbeed082a3de74bfb06aa9009892
|
|
| MD5 |
4d4ebe1aa28286e8db6194e32749208d
|
|
| BLAKE2b-256 |
3f353d59e057c4415f10c3debbe0d1a8a68c6de2b6186de78a52538d992a9c60
|