Tiling Windows in Fluxbox

3 Dec 2021


Building with windows

Fluxbox has a tiling functionality that does not seem to be frequently used. To use it, add the following code to ~/.fluxbox/keys. This will make CTRL-1 through CTRL-0 be your tiling shortcuts. These can be edited to suit your needs.

### BASIC TILING WINDOWS ###
# Make active window 1/2 of the screen
Control 1 :MacroCmd {ResizeTo 50% 100%} {MoveTo 00 00 Left}
Control 2 :MacroCmd {ResizeTo 50% 100%} {MoveTo 00 00 Right}
Control 3 :MacroCmd {ResizeTo 100% 50%} {MoveTo 00 00 Up}
Control 4 :MacroCmd {ResizeTo 100% 50%} {MoveTo 00 00 Bottom}
# Make active window 1/4 of the screen on the upper left
Control 5 :MacroCmd {ResizeTo 50% 50%} {MoveTo 00 00 Up}
Control 6 :MacroCmd {ResizeTo 50% 50%} {MoveTo 00 00 TopRight}
Control 7 :MacroCmd {ResizeTo 50% 50%} {MoveTo 00 00 BottomLeft}
Control 8 :MacroCmd {ResizeTo 50% 50%} {MoveTo 00 00 BottomRight}
# toggle active window: Maximized/ last size
Control 0 :ToggleCmd {Maximize} {Restore}