fibonacci layouts

Description

This patch adds two new layouts (spiral and dwindle) that arranges all windows in Fibonacci tiles: The first window uses half the screen, the second the half of the remainder, etc. ASCII art and a real screenshot of the spiral arrangement can be seen below.

+-----------+-----------+  +-----------+-----------+
|           |           |  |           |           |
|           |     2     |  |           |     2     |
|           |           |  |           |           |
|     1     +--+--+-----+  |     1     +-----+-----+
|           | 5|-.|     |  |           |     |  4  |
|           +--+--+  3  |  |           |  3  +--+--+
|           |  4  |     |  |           |     | 5|-.|
+-----------+-----+-----+  +-----------+-----+-----+
     spiral                     dwindle

Usage

  1. Download the patch and apply according to the general instructions.
  2. Include the fibonacci.c source file and add spiral and/or dwindle to the Layout section of your config.h file. Example from config.default.h:

    #include “fibonacci.c” static Layout layout[] = { / symbol function / { “[]=”, tile }, / first entry is default / { “><>”, floating }, { “(@)”, spiral }, { “[\]”, dwindle }, };

Download

Maintainer

Joe Thornber’s spiral tiling for [Xmonad][3] formed the inspiration for this patch. Thanks to Jan Christoph Ebersbach for updating this patch for versions 4.5 to 4.9.