Added `findemacs` function to focus an emacs frame.
[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 title of the focused window, and the text read from the root window
24 name property, if the screen is focused. A floating window is indicated with an
25 empty square and a maximised floating window is indicated with a filled square
26 before the windows title. The selected tags are indicated with a different
27 color. The tags of the focused window are indicated with a filled square in the
28 top left corner. The tags which are applied to one or more windows are
29 indicated with an empty square in the top left corner.
30 .P
31 dwm draws a small border around windows to indicate the focus state.
32 .SH OPTIONS
33 .TP
34 .B \-v
35 prints version information to standard output, then exits.
36 .SH USAGE
37 .SS Status bar
38 .TP
39 .B X root window name
40 is read and displayed in the status text area. It can be set with the
41 .BR xsetroot (1)
42 command.
43 .TP
44 .B Button1
45 click on a tag label to display all windows with that tag, click on the layout
46 label toggles between tiled and floating layout.
47 .TP
48 .B Button3
49 click on a tag label adds/removes all windows with that tag to/from the view.
50 .TP
51 .B Super\-Button1
52 click on a tag label applies that tag to the focused window.
53 The Super key may also be known as Windows key.
54 .TP
55 .B Super\-Button3
56 click on a tag label adds/removes that tag to/from the focused window.
57 .SS Keyboard commands
58 .TP
59 .B Super\-Shift\-Return
60 Start
61 .BR rxvt-unicode (1).
62 .TP
63 .B Super\-e
64 Focuses a running
65 .BR emacs (1)
66 frame, if it finds one.
67 .TP
68 .B Super\-x
69 Shows a menu with programs you can run if you have
70 .BR dmenu (1)
71 installed.
72 .TP
73 .B Super\-,
74 Focus previous screen, if any.
75 .TP
76 .B Super\-.
77 Focus next screen, if any.
78 .TP
79 .B Super\-Shift\-,
80 Send focused window to previous screen, if any.
81 .TP
82 .B Super\-Shift\-.
83 Send focused window to next screen, if any.
84 .TP
85 .B Super\-b
86 Toggles bar on and off.
87 .TP
88 .B Super\-t
89 Sets tiled layout.
90 .TP
91 .B Super\-f
92 Sets floating layout.
93 .TP
94 .B Super\-m
95 Sets monocle layout.
96 .TP
97 .B Super\-space
98 Toggles between current and previous layout.
99 .TP
100 .B Super\-j
101 Focus next window.
102 .TP
103 .B Super\-k
104 Focus previous window.
105 .TP
106 .B Super\-i
107 Increase clients in master area.
108 .TP
109 .B Super\-d
110 Decrease clients in master area.
111 .TP
112 .B Super\-l
113 Increase master area size.
114 .TP
115 .B Super\-h
116 Decrease master area size.
117 .TP
118 .B Super\-Return
119 Zooms/cycles focused window to/from master area (tiled layouts only).
120 .TP
121 .B Super\-Shift\-c
122 Close focused window.
123 .TP
124 .B Super\-Shift\-space
125 Toggle focused window between tiled and floating state.
126 .TP
127 .B Super\-Tab
128 Toggles to the previously selected tags.
129 .TP
130 .B Super\-Shift\-[1..n]
131 Apply nth tag to focused window.
132 .TP
133 .B Super\-Shift\-0
134 Apply all tags to focused window.
135 .TP
136 .B Super\-Control\-Shift\-[1..n]
137 Add/remove nth tag to/from focused window.
138 .TP
139 .B Super\-[1..n]
140 View all windows with nth tag.
141 .TP
142 .B Super\-0
143 View all windows with any tag.
144 .TP
145 .B Super\-Control\-[1..n]
146 Add/remove all windows with nth tag to/from the view.
147 .TP
148 .B Super\-Shift\-q
149 Quit dwm.
150 .TP
151 .B Super\-a
152 Runs
153 .BR ssh-add
154 to add your ssh key to the agent
155 .TP
156 .B Super\-g
157 Checks for new mail using
158 .BR rsync
159 .TP
160 .B Super\-s
161 Sends mails in your mail queue using ssh.
162 .SS Mouse commands
163 .TP
164 .B Super\-Button1
165 Move focused window while dragging. Tiled windows will be toggled to the floating state.
166 .TP
167 .B Super\-Button2
168 Toggles focused window between floating and tiled state.
169 .TP
170 .B Super\-Button3
171 Resize focused window while dragging. Tiled windows will be toggled to the floating state.
172 .SH CUSTOMIZATION
173 dwm is customized by creating a custom config.h and (re)compiling the source
174 code. This keeps it fast, secure and simple.
175 .SH SEE ALSO
176 .BR dmenu (1)
177 .SH AUTHORS
178 This manpage has been expanded by Gabriel PĂ©rez-Cerezo.
179 .SH BUGS
180 Java applications which use the XToolkit/XAWT backend may draw grey windows
181 only. The XToolkit/XAWT backend breaks ICCCM-compliance in recent JDK 1.5 and early
182 JDK 1.6 versions, because it assumes a reparenting window manager. Possible workarounds
183 are using JDK 1.4 (which doesn't contain the XToolkit/XAWT backend) or setting the
184 environment variable
185 .BR AWT_TOOLKIT=MToolkit
186 (to use the older Motif backend instead) or running
187 .B xprop -root -f _NET_WM_NAME 32a -set _NET_WM_NAME LG3D
188 or
189 .B wmname LG3D
190 (to pretend that a non-reparenting window manager is running that the
191 XToolkit/XAWT backend can recognize) or when using OpenJDK setting the environment variable
192 .BR _JAVA_AWT_WM_NONREPARENTING=1 .
193 .P
194 GTK 2.10.9+ versions contain a broken
195 .BR Save\-As
196 file dialog implementation,
197 which requests to reconfigure its window size in an endless loop. However, its
198 window is still respondable during this state, so you can simply ignore the flicker
199 until a new GTK version appears, which will fix this bug, approximately
200 GTK 2.10.12+ versions.