JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
applied nsz's dwm.1 patch, also added wmname
[dwm.git] / dwm.1
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 contains the window which currently needs most attention, whereas the
14 stacking area contains all other windows. In monocle layout all windows are
15 maximised to the screen size. In floating layout windows can be resized and
16 moved freely. Dialog windows are always managed floating, regardless of the
17 layout applied.
18 .P
19 Windows are grouped by tags. Each window can be tagged with one or multiple
20 tags. Selecting certain tags displays all windows with these tags.
21 .P
22 Each screen contains a small status bar which displays all available tags, the
23 layout, the number of visible windows, the title of the focused window, and the
24 text read from the root window name property, if the screen is focused. A
25 floating window is indicated with an empty square and a maximised floating
26 window is indicated with a filled square before the windows title.  The
27 selected tags are indicated with a different color. The tags of the focused
28 window are indicated with a filled square in the top left corner.  The tags
29 which are applied to one or more windows are indicated with an empty square in
30 the top left corner.
31 .P
32 dwm draws a small border around windows to indicate the focus state.
33 .SH OPTIONS
34 .TP
35 .B \-v
36 prints version information to standard output, then exits.
37 .SH USAGE
38 .SS Status bar
39 .TP
40 .B X root window name
41 is read and displayed in the status text area. It can be set with the
42 .BR xsetroot (1)
43 command.
44 .TP
45 .B Button1
46 click on a tag label to display all windows with that tag, click on the layout
47 label toggles between tiled and floating layout.
48 .TP
49 .B Button3
50 click on a tag label adds/removes all windows with that tag to/from the view.
51 .TP
52 .B Mod1\-Button1
53 click on a tag label applies that tag to the focused window.
54 .TP
55 .B Mod1\-Button3
56 click on a tag label adds/removes that tag to/from the focused window.
57 .SS Keyboard commands
58 .TP
59 .B Mod1\-Shift\-Return
60 Start
61 .BR uxterm (1).
62 .TP
63 .B Mod1\-,
64 Focus previous screen, if any.
65 .TP
66 .B Mod1\-.
67 Focus next screen, if any.
68 .TP
69 .B Mod1\-Shift\-,
70 Send focused window to previous screen, if any.
71 .TP
72 .B Mod1\-Shift\-.
73 Send focused window to next screen, if any.
74 .TP
75 .B Mod1\-b
76 Toggles bar on and off.
77 .TP
78 .B Mod1\-t
79 Sets tiled layout.
80 .TP
81 .B Mod1\-f
82 Sets floating layout.
83 .TP
84 .B Mod1\-m
85 Sets monocle layout.
86 .TP
87 .B Mod1\-space
88 Toggles between current and previous layout.
89 .TP
90 .B Mod1\-j
91 Focus next window.
92 .TP
93 .B Mod1\-k
94 Focus previous window.
95 .TP
96 .B Mod1\-h
97 Decrease master area size.
98 .TP
99 .B Mod1\-l
100 Increase master area size.
101 .TP
102 .B Mod1\-Return
103 Zooms/cycles focused window to/from master area (tiled layouts only).
104 .TP
105 .B Mod1\-Shift\-c
106 Close focused window.
107 .TP
108 .B Mod1\-Shift\-space
109 Toggle focused window between tiled and floating state.
110 .TP
111 .B Mod1\-Tab
112 Toggles to the previously selected tags.
113 .TP
114 .B Mod1\-Shift\-[1..n]
115 Apply nth tag to focused window.
116 .TP
117 .B Mod1\-Shift\-0
118 Apply all tags to focused window.
119 .TP
120 .B Mod1\-Control\-Shift\-[1..n]
121 Add/remove nth tag to/from focused window.
122 .TP
123 .B Mod1\-[1..n]
124 View all windows with nth tag.
125 .TP
126 .B Mod1\-0
127 View all windows with any tag.
128 .TP
129 .B Mod1\-Control\-[1..n]
130 Add/remove all windows with nth tag to/from the view.
131 .TP
132 .B Mod1\-Shift\-q
133 Quit dwm.
134 .SS Mouse commands
135 .TP
136 .B Mod1\-Button1
137 Move focused window while dragging. Tiled windows will be toggled to the floating state.
138 .TP
139 .B Mod1\-Button2
140 Toggles focused window between floating and tiled state.
141 .TP
142 .B Mod1\-Button3
143 Resize focused window while dragging. Tiled windows will be toggled to the floating state.
144 .SH CUSTOMIZATION
145 dwm is customized by creating a custom config.h and (re)compiling the source
146 code. This keeps it fast, secure and simple.
147 .SH SEE ALSO
148 .BR dmenu (1)
149 .SH BUGS
150 Java applications which use the XToolkit/XAWT backend may draw grey windows
151 only. The XToolkit/XAWT backend breaks ICCCM-compliance in recent JDK 1.5 and early
152 JDK 1.6 versions, because it assumes a reparenting window manager. Possible workarounds
153 are using JDK 1.4 (which doesn't contain the XToolkit/XAWT backend) or setting the
154 environment variable
155 .BR AWT_TOOLKIT=MToolkit
156 (to use the older Motif backend instead) or running
157 .B xprop -root -f _NET_WM_NAME 32a -set _NET_WM_NAME LG3D
158 or
159 .B wmname LG3D
160 (to pretend that a non-reparenting window manager is running that the
161 XToolkit/XAWT backend can recognize) or when using OpenJDK setting the environment variable
162 .BR _JAVA_AWT_WM_NONREPARENTING=1 .
163 .P
164 GTK 2.10.9+ versions contain a broken
165 .BR Save\-As
166 file dialog implementation,
167 which requests to reconfigure its window size in an endless loop. However, its
168 window is still respondable during this state, so you can simply ignore the flicker
169 until a new GTK version appears, which will fix this bug, approximately
170 GTK 2.10.12+ versions.