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 (1994B)
---
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 Usage
23 -----
24 1. Download the patch and apply according to the [general instructions](.).
25 2. Include the `fibonacci.c` source file and add `spiral` and/or `dwindle` to
26 the `Layout` section of your `config.h` file. Example from
27 `config.default.h`:
28
29 #include "fibonacci.c"
30 static Layout layout[] = {
31 /* symbol function */
32 { "[]=", tile }, /* first entry is default */
33 { "><>", floating },
34 { "(@)", spiral },
35 { "[\\]", dwindle },
36 };
37 3. Default key bindings are [Ctrl]+[r] for `spiral` and [Ctrl]+[Shift]+r for
38 `dwindle`.
39
40 Download
41 --------
42 * [dwm-fibonacci-5.8.2.diff](dwm-fibonacci-5.8.2.diff)
43 * [dwm-fibonacci-6.2.diff](dwm-fibonacci-6.2.diff)
44 * [dwm-fibonacci-20200418-c82db69.diff](dwm-fibonacci-20200418-c82db69.diff)
45
46 Author
47 ------
48 * Jeroen Schot - <schot@a-eskwadraat.nl>
49
50 Maintainer
51 ----------
52 * Niki Yoshiuchi - <nyoshiuchi@gmail.com>
53
54 Joe Thornber's spiral tiling for [Xmonad](http://www.xmonad.org) formed the
55 inspiration for this patch. Thanks to Jan Christoph Ebersbach for updating this
56 patch for versions 4.5 to 4.9.