Script for sway and i3 to automatically switch the horizontal / vertical window split orientation
Attempt to fix PyPI workflow. #52
New arguments added by @JoseConseco in #44:
-sw SPLITWIDTH, --splitwidth SPLITWIDTH
set the width of the vertical split (as factor);
default: 1.0;
-sh SPLITHEIGHT, --splitheight SPLITHEIGHT
set the height of the horizontal split (as factor);
default: 1.0;
-sr SPLITRATIO, --splitratio SPLITRATIO
Split direction ratio - based on window height/width;
default: 1;try "1.61", for golden ratio - window has
to be 61% wider for left/right split; default: 1.0;
-l LIMIT
, --limit LIMIT
argument; #41 by @SyphdiasIt limits how deep will autotiling work; try -l 2
, if you like master-stack layouts; default value is 0 (no limit); avoid the 1 value, that will actually spoil autotiling. Below the level you specified, stacking and tabbed layout will behave well again.
Added a line to remove workspaces tmp file, if no --workspaces
specified. The simple txt file stores the --workspaces
flag content, to let the panel know which workspaces to mark with the "a" letter.
This will only be useful for use the script with nwg-panel, but not with full nwg-shell. The latter uses its own version of the autotiling script, which also allows just single instance, and can be started with exec_always
. I decided not to include it into this version, due to the additional psutil
dependency.
Added publish to PYPI workflow #39 by @dpgraham4401 - closes #38
-e
| --events
argument.Added Event.BINDING
subscription to resolve #26.
nwg-panel integration: args.workspaces
saved to /tmp/autotiling
on start
--workspaces
argument to restrict autotiling to certain workspaces @riscie--version
argument @nschloe