To dynamically change the split direction in I3/Sway so as to split new windows automatically based on the width and height of the focused window
Quick start
Ubuntu
$ sudo apt install python3-pip
$ pip3 install i3ipc
$ git clone https://github.com/aurora-0025/i3-autosplit
Adding to your i3-autosplit to autostart of i3 config
Edit your i3 config file
~/.config/i3/config
add this line
exec --no-startup-id python /path/to/i3-autosplit.py
Arch
$ sudo pacman -S python-pip
$ pip3 install i3ipc
$ git clone https://github.com/aurora-0025/i3-autosplit
Adding to your i3-autosplit to autostart of i3 config
Edit your i3 config file
~/.config/i3/config
add this line
exec --no-startup-id python /path/to/i3-autosplit.py