This script combines quick tiling in all directions and moving windows over monitors into four simple binds for the directions up/down/left/right.
Floating and maximized windows get tiled to the chosen direction just like regular quick tiling does it.
The rest, though pretty straightforward, is probably best explained with two examples. Assuming two monitors side by side:
Ex 1: Window tiled to the right side of the left monitor:
-left -> maximize window
-up -> tile top right
-down -> tile bottom right
-right -> tile to the left half of the right monitor
Ex 2: Window tiled to the top right quarter of the left monitor:
-left -> tile top
-up -> behave kind of weird**
-down -> tile right
-right -> tile to the top left quarter of the right monitor
** The window tiles to the bottom right of the right monitor.
When trying to move into a direction without monitor the behavior is not very obvious. That is due to the rather primitive way I implemented this.
If anybody has a good idea what to do in those cases then let me know. I could not think of a functionality I would want to have at the edges but not in all other places.