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.
The script does one thing: it checks the window height / width ratio,
and executes the equivalent of either swaymsg splitv or swaymsg splith.
Nothing less, nothing more. Yes, it may make stacking and tabbed
layouts behave oddly. No, nothing can be done about it. If you like
stacking/tabbed layouts, you may use them on workspaces with autotiling
turned off (--workspaces argument). Do not submit issues about it.
For instance, you may configure autotiling to work on odd workspaces,
but not on even:
### Autostart
exec autotiling -w 1 3 5 7 9
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py311-autotiling listed in the above command, you can pick from the names under the Packages section.
To use x11/py-autotiling, add
exec_always autotiling
or
exec_always --no-startup-id autotiling
to the ~/.config/sway/config or ~/.config/i3/config file.
python: bump all USE_PYTHON=distutils consumers after RUN_DEPENDS removal
Any missed ports, feel free to bump.
Any ports that need setuptools at runtime can have the devel/py-setuptools
manually added back to RUN_DEPENDS, but understand that this practice
is deprecated; see CHANGES for details.
*/*: Update fuz@fuz.su to fuz@FreeBSD.org
www/writefreely had a stray duplicate MAINTAINER block
from an earlier botched commit. I did intentionally not
touch the entry in UPDATING.
Reviewed by: eduardo, flo
Differential Revision: https://reviews.freebsd.org/D38435
x11/py-autotiling: Add new port
Automatically switch the window split orientation in sway and i3.
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.
PR: 267408