index.md - sites - public wiki contents of suckless.org
(HTM) git clone git://git.suckless.org/sites
(DIR) Log
(DIR) Files
(DIR) Refs
---
index.md (2070B)
---
1 fibonacci layouts
2 =================
3
4 Description
5 -----------
6 This patch adds two new layouts (`spiral` and `dwindle`) that arranges all
7 windows in Fibonacci tiles: The first window uses half the screen, the second
8 the half of the remainder, etc. ASCII art and a real screenshot of the spiral
9 arrangement can be seen below.
10
11 +-----------+-----------+ +-----------+-----------+
12 | | | | | |
13 | | 2 | | | 2 |
14 | | | | | |
15 | 1 +--+--+-----+ | 1 +-----+-----+
16 | | 5|-.| | | | | 4 |
17 | +--+--+ 3 | | | 3 +--+--+
18 | | 4 | | | | | 5|-.|
19 +-----------+-----+-----+ +-----------+-----+-----+
20 spiral dwindle
21
22 [](https://schot.a-eskwadraat.nl/images/dwm-spiral.png)
23
24 *Links2, sic, xterm & xclock in spiral layout.*
25
26 Usage
27 -----
28 1. Download the patch and apply according to the [general instructions](.).
29 2. Include the `fibonacci.c` source file and add `spiral` and/or `dwindle` to
30 the `Layout` section of your `config.h` file.
31 Example from `config.default.h`:
32
33 #include "fibonacci.c"
34 static Layout layout[] = { \
35 /* symbol function */ \
36 { "[]=", tile }, /* first entry is default */ \
37 { "><>", floating }, \
38 { "(@)", spiral }, \
39 { "[\\]", dwindle }, \
40 };
41
42 Download
43 --------
44 * [dwm-5.2-fibonacci.diff](http://www.aplusbi.com/dwm/dwm-5.2-fibonacci.diff) (1.9k) (20081003)
45 * [dwm-5.1-fibonacci.diff](http://schot.a-eskwadraat.nl/files/dwm-5.1-fibonacci.diff) (1.9k) (20080731)
46
47 Author
48 ------
49 * Jeroen Schot - <schot@a-eskwadraat.nl>
50
51 Joe Thornber's spiral tiling for [Xmonad](http://www.xmonad.org) formed the
52 inspiration for this patch. Thanks to Jan Christoph Ebersbach for updating this
53 patch for versions 4.5 to 4.9.