summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dwm.114
-rw-r--r--view.c18
2 files changed, 25 insertions, 7 deletions
diff --git a/dwm.1 b/dwm.1
index db9eee1..5e17193 100644
--- a/dwm.1
+++ b/dwm.1
@@ -9,9 +9,9 @@ dwm is a dynamic window manager for X. It manages windows in tiling and
9floating modes. Either mode can be applied dynamically, optimizing the 9floating modes. Either mode can be applied dynamically, optimizing the
10environment for the application in use and the task performed. 10environment for the application in use and the task performed.
11.P 11.P
12In tiling mode windows are managed in a master and stacking column. The master 12In tiling mode windows are managed in a master and stacking area. The master
13column contains the window which currently needs most attention, whereas the 13area contains the window which currently needs most attention, whereas the
14stacking column contains all other windows. In floating mode windows can be 14stacking area contains all other windows. In floating mode windows can be
15resized and moved freely. Dialog windows are always managed floating, 15resized and moved freely. Dialog windows are always managed floating,
16regardless of the mode selected. 16regardless of the mode selected.
17.P 17.P
@@ -60,13 +60,13 @@ Focus next window.
60Focus previous window. 60Focus previous window.
61.TP 61.TP
62.B Mod1-Return 62.B Mod1-Return
63Zooms/cycles current window to/from master column (tiling mode), toggles maximization current window (floating mode). 63Zooms/cycles current window to/from master area (tiling mode), toggles maximization current window (floating mode).
64.TP 64.TP
65.B Mod1-g 65.B Mod1-g
66Grow current column (tiling mode only). 66Grow current area (tiling mode only).
67.TP 67.TP
68.B Mod1-s 68.B Mod1-s
69Shrink current column (tiling mode only). 69Shrink current area (tiling mode only).
70.TP 70.TP
71.B Mod1-Shift-[1..n] 71.B Mod1-Shift-[1..n]
72Apply 72Apply
@@ -105,7 +105,7 @@ Quit dwm.
105Move current window while dragging (floating mode only). 105Move current window while dragging (floating mode only).
106.TP 106.TP
107.B Mod1-Button2 107.B Mod1-Button2
108Zoom current window to the master column (tiling mode only). 108Zoom current window to the master area (tiling mode only).
109.TP 109.TP
110.B Mod1-Button3 110.B Mod1-Button3
111Resize current window while dragging (floating mode only). 111Resize current window while dragging (floating mode only).
diff --git a/view.c b/view.c
index dab8128..d3378ff 100644
--- a/view.c
+++ b/view.c
@@ -95,6 +95,24 @@ dofloat(Arg *arg) {
95 restack(); 95 restack();
96} 96}
97 97
98/* This algorithm is based on a (M)aster area and a (S)tacking area.
99 * It supports following arrangements:
100 *
101 * MMMS MMMM
102 * MMMS MMMM
103 * MMMS SSSS
104 *
105 * The stacking area can be set to arrange clients vertically or horizontally.
106 * Through inverting the algorithm it can be used to achieve following setup in
107 * a dual head environment (due to running two dwm instances concurrently on
108 * the specific screen):
109 *
110 * SMM MMS MMM MMM
111 * SMM MMS MMM MMM
112 * SMM MMS SSS SSS
113 *
114 * This uses the center of the two screens for master areas.
115 */
98void 116void
99dotile(Arg *arg) { 117dotile(Arg *arg) {
100 int h, i, n, w; 118 int h, i, n, w;