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
- Download the patch and apply according to the general instructions.
- Include the
fibonacci.c
source file and addspiral
and/ordwindle
to theLayout
section of yourconfig.h
file. Example from
config.default.h
:
#include "fibonacci.c" static Layout layout[] = { /symbol function/ { "[]=", tile }, /first entry is default/ { "><>", floating }, { "(@)", spiral }, { "[\]", dwindle }, };
- Default key bindings are [Ctrl]+[r] for
spiral
and [Ctrl]+[Shift]+r fordwindle
.
Download
Author
- Jeroen Schot - schot@a-eskwadraat.nl
Maintainer
- Niki Yoshiuchi - nyoshiuchi@gmail.com
Joe Thornber's spiral tiling for Xmonad formed the inspiration for this patch. Thanks to Jan Christoph Ebersbach for updating this patch for versions 4.5 to 4.9.