blob: 30e64d0743847ac240bbe8e682c8233a7879a8bd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# autotiling
This script uses the [i3ipc-python library](https://github.com/altdesktop/i3ipc-python) 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](https://img.youtube.com/vi/UWRZuhn92bQ/0.jpg)](https://www.youtube.com/watch?v=UWRZuhn92bQ)
## Installation
**Arch Linux**
1. Install the `autotiling` (AUR) package.
2. Add `exec autotiling` to the `~/.config/sway/config` or `exec --no-startup-id autotiling`
to the `~/.config/i3/config` file. **Do not** use `exec_always`.
**python 3.8 note:**
If you've just updated to python 3.8, the script most likely stopped working. Uninstall both `azote` and `python-i3ipc`
packages and install `azote` again.
**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 --no-startup-id /path/to/the/script/autotiling.py` on i3.
|