Worked on a little patch for fluxbox this weekend that allows for ‘stacked’ tiling.
With stacked tiling, I mean:
- Divide the screen in half, and fill half the screen with the focused window.
- Use the remainder of the space for tiling the rest of the windows
So you can place the main (big) window on the top, bottom, left, or right half of the screen.
This patch introduces 4 new Tiling mechanisms in fluxbox to accomplish this: ArrangeWindowsStackLeft, ArrangeWindowsStackRight, ArrangeWindowsStackTop, ArrangeWindowsStackBottom
It is a tiny bit different than traditional ‘stacked’ tiling, since traditionally only one column is used tiling the remainder of the windows, but I think I like dividing things up in multiple columns, for now. Maybe the next version will add an option for that. (it should be trivial as the existing fluxbox tiling mechanism allows for manipulation of the number of columns and rows)
- So here is what it looks like: http://www.linkerror.com/stuff/fluxbox-stacked-tiling.png
- Here’s the patch: http://linkerror.com/programs/fluxbox_stacked_tiling.patch
Here is an example for what you can put in ~/.fluxbox/keys to assign keybindings to this new functionality:
Ctrl Alt Left :ArrangeWindowsStackRight Ctrl Alt Right :ArrangeWindowsStackLeft Ctrl Alt Up :ArrangeWindowsStackBottom Ctrl Alt Down :ArrangeWindowsStackTop
This will cause the ‘main’/big window to appear on top if you press ctrl-alt-uparrow, on the bottom if you press ctrl-alt-downarrow, etc,…
Works quite well.
The patch is against the (at the time of writing) latest git.