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
Links2, sic, xterm & xclock in spiral layout.
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 fromconfig.default.h
:
#include "fibonacci.c"
static Layout layout[] = { \
/* symbol function */ \
{ "[]=", tile }, /* first entry is default */ \
{ "><>", floating }, \
{ "(@)", spiral }, \
{ "[\\]", dwindle }, \
};
Download
- dwm-5.2-fibonacci.diff (1.9k) (20081003)
- dwm-5.1-fibonacci.diff (1.9k) (20080731)
Author
- Jeroen Schot - schot@a-eskwadraat.nl
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.