auto-layout off | auto-layout on |
---|---|
there are some other auto layout for i3. but some of them loose functionality when you move a window. this one will split window base on window size. if widnow is wide it will split vartically otherwise split horizontally.
- clone the repository
git clone https://github.com/dalmamad/i3-auto-layout.git
- run
auto-layout
file (you can remove main.c)
./path-to-auto-layout/auto-layout
NOTE:script
file and auto-layout
must be in a same directory
you can also exec it in i3 config:
exec --no-startup-id ./path-to-auto-layout/auto-layout
it's dead simple. before creating a new window in X11, auto-layout
runs script
file. you can also change it on your desire.