tatami layout
Description
This patch adds a new layout, tatami, that arranges all windows like
tatami tiles. This patch forms 'mats' of 5 or less windows each, and
each mat has 5 different possible arrangements. The mats then form a
stack as shown in the 7+ windows
diagram below.
+-----------+-----------+ +-----------+-----------+
| | | | | |
| | | | | 2 |
| | | | | |
| 1 | 2 | | 1 +-----------+
| | | | | |
| | | | | 3 |
| | | | | |
+-----------+-----------+ +-----------+-----------+
2 windows 3 windows
+-----------+-----+-----+ +-----------+-----------+
| | | | | | 2 |
| | 2 | 3 | | +-----+-----+
| | | | | | | |
| 1 +-----+-----+ | 1 | 3 | 4 |
| | | | | | |
| | 4 | | +-----+-----+
| | | | | 5 |
+-----------+-----------+ +-----------+-----+-----+
4 windows 5 windows
+-----------+---+-------+ +-----------+-----------+
| | | 3 | | | new |
| | 2 +---+---+ | +---+-------+
| | | | | | | | 4 |
| 1 | | 4 | | | 1 | 3 +---+---+
| | | | 5 | | | | 5 | |
| +---+---+ | | +---+---+ 6 |
| | 6 | | | | 7 | |
+-----------+-------+---+ +-----------+-------+---+
6 windows 7+ windows
Usage
- Download the patch and apply according to the general instructions.
- The patch automatically includes the
tatami.c
source file and addstatami
to theLayout
section of yourconfig.def.h
file. If you have already installed dwm, change config.def.h to be your config.h file. - Note that this patch ignores resize hints.
- The default keybinding is [Alt]+[y] for tatami.
Download
Maintainer
- Sarthak Shah - shahsarthakw@gmail.com