dwm.1 (6176B)
1 .TH DWM 1 dwm\-VERSION 2 .SH NAME 3 dwm \- dynamic window manager 4 .SH SYNOPSIS 5 .B dwm 6 .RB [ \-v ] 7 .SH DESCRIPTION 8 dwm is a dynamic window manager for X. It manages windows in tiled, monocle 9 and floating layouts. Either layout can be applied dynamically, optimising the 10 environment for the application in use and the task performed. 11 .P 12 In tiled layouts windows are managed in a master and stacking area. The master 13 area on the left contains one window by default, and the stacking area on the 14 right contains all other windows. The number of master area windows can be 15 adjusted from zero to an arbitrary number. In monocle layout all windows are 16 maximised to the screen size. In floating layout windows can be resized and 17 moved freely. Dialog windows are always managed floating, regardless of the 18 layout applied. 19 .P 20 Windows are grouped by tags. Each window can be tagged with one or multiple 21 tags. Selecting certain tags displays all windows with these tags. 22 .P 23 Each screen contains a small status bar which displays all available tags, the 24 layout, the title of the focused window, and the text read from the root window 25 name property, if the screen is focused. A floating window is indicated with an 26 empty square and a maximised floating window is indicated with a filled square 27 before the windows title. The selected tags are indicated with a different 28 color. The tags of the focused window are indicated with a filled square in the 29 top left corner. The tags which are applied to one or more windows are 30 indicated with an empty square in the top left corner. 31 .P 32 The attach below patch makes newly spawned windows attach after the currently 33 selected window 34 .P 35 dwm draws a small border around windows to indicate the focus state. 36 .SH OPTIONS 37 .TP 38 .B \-v 39 prints version information to standard output, then exits. 40 .SH USAGE 41 .SS Status bar 42 .TP 43 .B X root window name 44 is read and displayed in the status text area. It can be set with the 45 .BR xsetroot (1) 46 command. 47 .TP 48 .B Button1 49 click on a tag label to display all windows with that tag, click on the layout 50 label toggles between tiled and floating layout. 51 .TP 52 .B Button3 53 click on a tag label adds/removes all windows with that tag to/from the view. 54 .TP 55 .B Mod4\-Button1 56 click on a tag label applies that tag to the focused window. 57 .TP 58 .B Mod4\-Button3 59 click on a tag label adds/removes that tag to/from the focused window. 60 .SS Keyboard commands 61 .TP 62 .B Mod4\-Shift\-Return 63 Start 64 .BR st(1). 65 .TP 66 .B Mod4\-p 67 Spawn 68 .BR dmenu(1) 69 for launching other programs. 70 .TP 71 .B Mod4\-, 72 Focus previous screen, if any. 73 .TP 74 .B Mod4\-. 75 Focus next screen, if any. 76 .TP 77 .B Mod4\-Shift\-, 78 Send focused window to previous screen, if any. 79 .TP 80 .B Mod4\-Shift\-. 81 Send focused window to next screen, if any. 82 .TP 83 .B Mod4\-b 84 Toggles bar on and off. 85 .TP 86 .B Mod4\-t 87 Sets tiled layout. 88 .TP 89 .B Mod4\-f 90 Sets floating layout. 91 .TP 92 .B Mod4\-m 93 Sets monocle layout. 94 .TP 95 .B Mod4\-space 96 Toggles between current and previous layout. 97 .TP 98 .B Mod4\-Control\-, 99 Cycles backwards in layout list. 100 .TP 101 .B Mod4\-Control\-. 102 Cycles forwards in layout list. 103 .TP 104 .B Mod4\-j 105 Focus next window. 106 .TP 107 .B Mod4\-k 108 Focus previous window. 109 .TP 110 .B Mod4\-i 111 Increase number of windows in master area. 112 .TP 113 .B Mod4\-d 114 Decrease number of windows in master area. 115 .TP 116 .B Mod4\-l 117 Increase master area size. 118 .TP 119 .B Mod4\-h 120 Decrease master area size. 121 .TP 122 .B Mod4\-Return 123 Zooms/cycles focused window to/from master area (tiled layouts only). 124 .TP 125 .B Mod4\-Shift\-c 126 Close focused window. 127 .TP 128 .B Mod4\-Shift\-space 129 Toggle focused window between tiled and floating state. 130 .TP 131 .B Mod4\-Tab 132 Toggles to the previously selected tags. 133 .TP 134 .B Mod4\-Shift\-[1..n] 135 Apply nth tag to focused window. 136 .TP 137 .B Mod4\-Shift\-0 138 Apply all tags to focused window. 139 .TP 140 .B Mod4\-Control\-Shift\-[1..n] 141 Add/remove nth tag to/from focused window. 142 .TP 143 .B Mod4\-[1..n] 144 View all windows with nth tag. 145 .TP 146 .B Mod4\-0 147 View all windows with any tag. 148 .TP 149 .B Mod4\-Control\-[1..n] 150 Add/remove all windows with nth tag to/from the view. 151 .TP 152 .B Mod4\-Shift\-q 153 Quit dwm. 154 .SS Mouse commands 155 .TP 156 .B Mod4\-Button1 157 Move focused window while dragging. Tiled windows will be toggled to the floating state. 158 .TP 159 .B Mod4\-Button2 160 Toggles focused window between floating and tiled state. 161 .TP 162 .B Mod4\-Button3 163 Resize focused window while dragging. Tiled windows will be toggled to the floating state. 164 .SH CUSTOMIZATION 165 dwm is customized by creating a custom config.h and (re)compiling the source 166 code, or by setting X resources. 167 .P 168 The following X resource settings can be set: 169 .TP 170 .BI dwm.font 171 defines the font or font set used. 172 .TP 173 .BI dwm.background 174 defines the normal background color. 175 .IR #RGB , 176 .IR #RRGGBB , 177 and X color names are supported. 178 .TP 179 .BI dwm.border 180 defines the normal border color 181 .TP 182 .BI dwm.selbackground 183 defines the selected background color 184 .TP 185 .BI dwm.selforeground 186 defines the selected foreground color 187 .TP 188 .BI dwm.selborder 189 defines the selected border color 190 .TP 191 .BI dwm.tabactivebackground 192 defines the background color for active tabs 193 .TP 194 .BI dwm.tabactiveforeground 195 defines the foreground color for active tabs 196 .TP 197 .BI dwm.tabactiveborder 198 defines the border color for active tabs 199 .TP 200 .BI dwm.tabinactivebackground 201 defines the background color for inactive tabs 202 .TP 203 .BI dwm.tabinactiveforeground 204 defines the foreground color for inactive tabs 205 .TP 206 .BI dwm.tabinactiveborder 207 defines the border color for inactive tabs 208 .SH SEE ALSO 209 .BR dmenu (1), 210 .BR st (1) 211 .SH ISSUES 212 Java applications which use the XToolkit/XAWT backend may draw grey windows 213 only. The XToolkit/XAWT backend breaks ICCCM-compliance in recent JDK 1.5 and early 214 JDK 1.6 versions, because it assumes a reparenting window manager. Possible workarounds 215 are using JDK 1.4 (which doesn't contain the XToolkit/XAWT backend) or setting the 216 environment variable 217 .BR AWT_TOOLKIT=MToolkit 218 (to use the older Motif backend instead) or running 219 .B xprop -root -f _NET_WM_NAME 32a -set _NET_WM_NAME LG3D 220 or 221 .B wmname LG3D 222 (to pretend that a non-reparenting window manager is running that the 223 XToolkit/XAWT backend can recognize) or when using OpenJDK setting the environment variable 224 .BR _JAVA_AWT_WM_NONREPARENTING=1 . 225 .SH BUGS 226 Send all bug reports with a patch to hackers@suckless.org.