Skip to content

andrey-bolduzev/autotiling

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Arch Linux

  1. Install the autotiling (AUR) package.
  2. Add exec autotiling to the ~/.config/sway/config or exec_always --no-startup-id autotiling to the ~/.config/i3/config file.

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.

About

Script for sway and i3 to automatically switch the horizontal / vertical window split orientation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 97.6%
  • Shell 2.4%