diff options
| -rw-r--r-- | dwm.1 | 14 | ||||
| -rw-r--r-- | view.c | 18 |
2 files changed, 25 insertions, 7 deletions
| @@ -9,9 +9,9 @@ dwm is a dynamic window manager for X. It manages windows in tiling and | |||
| 9 | floating modes. Either mode can be applied dynamically, optimizing the | 9 | floating modes. Either mode can be applied dynamically, optimizing the |
| 10 | environment for the application in use and the task performed. | 10 | environment for the application in use and the task performed. |
| 11 | .P | 11 | .P |
| 12 | In tiling mode windows are managed in a master and stacking column. The master | 12 | In tiling mode windows are managed in a master and stacking area. The master |
| 13 | column contains the window which currently needs most attention, whereas the | 13 | area contains the window which currently needs most attention, whereas the |
| 14 | stacking column contains all other windows. In floating mode windows can be | 14 | stacking area contains all other windows. In floating mode windows can be |
| 15 | resized and moved freely. Dialog windows are always managed floating, | 15 | resized and moved freely. Dialog windows are always managed floating, |
| 16 | regardless of the mode selected. | 16 | regardless of the mode selected. |
| 17 | .P | 17 | .P |
| @@ -60,13 +60,13 @@ Focus next window. | |||
| 60 | Focus previous window. | 60 | Focus previous window. |
| 61 | .TP | 61 | .TP |
| 62 | .B Mod1-Return | 62 | .B Mod1-Return |
| 63 | Zooms/cycles current window to/from master column (tiling mode), toggles maximization current window (floating mode). | 63 | Zooms/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 |
| 66 | Grow current column (tiling mode only). | 66 | Grow current area (tiling mode only). |
| 67 | .TP | 67 | .TP |
| 68 | .B Mod1-s | 68 | .B Mod1-s |
| 69 | Shrink current column (tiling mode only). | 69 | Shrink current area (tiling mode only). |
| 70 | .TP | 70 | .TP |
| 71 | .B Mod1-Shift-[1..n] | 71 | .B Mod1-Shift-[1..n] |
| 72 | Apply | 72 | Apply |
| @@ -105,7 +105,7 @@ Quit dwm. | |||
| 105 | Move current window while dragging (floating mode only). | 105 | Move current window while dragging (floating mode only). |
| 106 | .TP | 106 | .TP |
| 107 | .B Mod1-Button2 | 107 | .B Mod1-Button2 |
| 108 | Zoom current window to the master column (tiling mode only). | 108 | Zoom current window to the master area (tiling mode only). |
| 109 | .TP | 109 | .TP |
| 110 | .B Mod1-Button3 | 110 | .B Mod1-Button3 |
| 111 | Resize current window while dragging (floating mode only). | 111 | Resize current window while dragging (floating mode only). |
| @@ -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 | */ | ||
| 98 | void | 116 | void |
| 99 | dotile(Arg *arg) { | 117 | dotile(Arg *arg) { |
| 100 | int h, i, n, w; | 118 | int h, i, n, w; |
