summaryrefslogtreecommitdiff
path: root/doc/ratpoison.1
blob: 369c8eaf5fa86a9f514b482b3f5d4e7a34aa59d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
.TH RATPOISON 1 "3 March, 2001" "ratpoison 0.1.0" RATPOISON
.SH NAME
ratpoison \- fatless X window manager
.SH SYNOPSIS
.B ratpoison [ \fIoptions\fP ]
.SH DESCRIPTION
This manual page documents briefly the
.B ratpoison
window manager.

\fBratpoison\fP is a simple Window Manager with no fat library
dependencies, no fancy graphics, no window decorations, and no
flashy wank. It is largely modeled after \fIGNU Screen\fP which
has done wonders in virtual terminal market.

All interaction with the window manager is done through
keystrokes. ratpoison has a prefix map to minimize the key
clobbering that cripples EMACS and other quality pieces of
software.
.SH KEYSTROKES
ratpoison is controlled entirely through the keyboard. The default
keystrokes are listed in this section.
.TP
.B C-t C-t
Switch to the last window.
.TP
.B C-t t
Sometimes you need to send a C-t to the current window. This keystroke
does just that.
.TP
.B C\-t 0-9
Switch to the numbered window.
.TP
.B C\-t \-
Select no window, essentially hiding all windows in the current frame.
.TP
.B C\-t A,
.B C\-t C\-A
Rename the current window. The window's new name will prevail for the
rest of its lifetime.
.TP
.B C\-t K,
.B C\-t C\-K
Send a DestroyClient event to the current window. This will terminate
the application without question.
.TP
.B C\-t n,
.B C\-t C\-n,
.B C\-t Return,
.B C\-t C\-Return,
.B C\-t Space,
.B C\-t C\-Space,
Go to next window.
.TP
.B C\-t p,
.B C\-t C\-p
Go to previous window.
.TP
.B C\-t ',
.B C\-t C\-'
Go to a window by name.  You will usually only need to type the first
few characters of the window name.
.TP
.B C\-t a,
.B C\-t C\-a
Display the current time of day.
.TP
.B C\-t c,
.B C\-t C\-c
Open a new X terminal.
.TP
.B C\-t :,
.B C\-t C\-:
This allows you to execute a single ratpoison command.
.TP
.B C\-t !,
Run a shell command.
.TP
.B C\-t C\-!
Run a shell command through an X terminal.
.TP
.B C\-t k,
.B C\-t C\-k
Close the current window.
.TP
.B C\-t m,
.B C\-t C\-m
Maximize the current window. Sometimes windows don't respond correctly
to the initial maximize event and need some coaxing. This is a fancy way
of saying there are still bugs in ratpoison. \fIC\-t m\fP will force the
current window to maximize.
.TP
.B C\-t v,
.B C\-t C\-v
Display the version of ratpoison.
.TP
.B C\-t w,
.B C\-t C\-w
Display the list of managed windows. The current window is highlighted.
.TP
.B C\-t s
Split the current window horizontally in two. The last accessed window
not occupying a frame will be the second window.
.TP
.B C\-t S
Split the current window vertically in two. The last accessed window not
occupying a frame will be the second window.
.TP
.B C\-t tab
Cycle through ratpoison's frames.
.TP
.B C\-t Q
Kill all frames but the current one.
.TP
.B C\-t R
Kill the current frame. This is a no-op if there is only one frame.
.TP
.B C\-t b,
.B C\-t C\-b
Banish the mouse to the lower right corner of the screen.
.TP
.B C\-t ?
Display a help screen
.TP
.B C\-t f
.B C\-t C\-f
Indicate which frame is the current frame.

.SH COMMANDS
Ratpoison can be controlled with commands (so called colon-commands).
The summary of available commands is listed below:
.TP
.B abort
This is a pretty useless command. By default, it is bound to
\fIC\-t g\fP, and its purpose is to abort other commands.
.TP
.B banish
Banish the mouse to the lower right corner of the screen.
.TP
.B bind \fIKey\fP \fIcommand\fP
Bind a key to a ratpoison command. This command takes two arguments: the
key to bind and the command to run. For example, to bind \fIC\-t R\fP to
restart ratpoison:

.IP
: bind R exec ratpoison --restart
.PP
.TP
.B clock
Show current time. Disappears after 5 seconds, like all other info bars.
In the default setup, the \fIC\-t a\fP keystroke is bound to this command.
.TP
.B colon \fIcommand\fP
Run a ratpoison command.
.TP
.B curframe
Indicate which frame is the current frame.
.TP
.B delete
This deletes the current window. You can access it with the \fIC\-t k\fP
keystroke.
.TP
.B escape \fIkey\fP
Set the prefix to to \fIkey\fP. For example \fIescape C-b\fP sets the
prefix key to \fIC\-b\fP.
.TP
.B focus
cycle through ratpoison's frames.
.TP
.B generate
Send a \fIC\-t\fP to the current window.
.TP
.B help
Display a help screen that lists all bound keystrokes.
.TP
.B echo \fItext\fP
Display \fItext\fP as a message.
.TP
.B exec \fIcommand\fP
Execute a shell command. By default, \fIC\-t !\fP does this.
.TP
.B kill
This destroys the current window. Normally you should only need to
use \fIdelete\fP, but just in case you need to rip the heart out of a
misbehaving window this command should do the trick. Also available as
\fIC\-t K\fP.
.TP
.B maximize
Maximize the current window, just like \fIC\-t m\fP would do.
.TP
.B next
This jumps you to the next window in the window list. This one is
bound to three keystrokes, namely \fIC\-t n\fP, \fIC\-t space\fP,
and \fIC\-t enter\fP.
.TP
.B newwm \fIwindow-manager\fP
This is a bad-bad command. It kills ratpoison and revives that
ugly rodent! Yuck! Avoid!
.TP
.B number \fIn\fP
Set the current window's number to \fIn\fP. If another window occupies
the requested number already, then the windows' numbers are swapped.
.TP
.B only
Kill all frames but the current one.
.TP
.B other
This toggles between the current window and the last window. By
default, this is bound to \fIC\-t C\-t\fP.
.TP
.B prev
This jumps you to the previous window in the window list. By default,
this is bound to \fIC\-t p\fP.
.TP
.B quit
Quit ratpoison.
.TP
.B remove
Kill the current frame. This is a no-op if there is only one frame.
.TP
.B rudeness \fIn\fP
The rudeness command lets you decide what windows pop-up automatically
and when. This is often useful for those deep hack sessions when you
absolutely can't be disturbed.

There are two kinds of windows: normal windows (like an xterm) and
transient windows (generally pop-up dialog boxes). When a client
program wants to display a new window it makes a requests to
ratpoison. ratpoison then decides whether to grant the request and
display the window or ignore it. A client program can also request
that one of its windows be raised. You can customize ratpoison to
either honour these requests (the default operation) or ignore them.

\fIn\fP is a number from 0 to 15. Each of the four bits determine
which requests ratpoison grants.

Bit 0 Tells ratpoison to grant raise requests on transient windows.
Bit 1 Tells ratpoison to grant raise requests on normal windows. 
Bit 2 Tells ratpoison to grant display requests on new transient windows.
Bit 3 Tells ratpoison to grant display requests on new normal windows.

For example, if you wanted only wanted to grant transient windows
raise requests and display requests you would type \fIrudeness
5\fP. If a request is not granted ratpoison will tell you about the
request with a message like \fIRaise request from window 1
(emacs)\fP.
.TP
.B select \fIn\fP
This jumps you to window \fIn\fP where \fIn\fP is the window number as
shown in the Program Bar. You can do the same trick with
\fIC\-n\fP too. To select no window, blanking the current
frame, type \fIselect -\fP.
.TP
.B select \fIwindow-name\fP
Go to a window by name. A shortcut is \fIC\-t '\fP.
.TP
.B source \fIfile\fP
Read a text file containing ratpoison commands.
.TP
.B split,
.B hsplit
Split the current window horizontally in two. The last accessed window
not occupying a frame will be the second window.
.TP
.B title \fItitle\fP
Rename the currently active window. This name will remain for the
duration of the window's life, unless you change it again. By default,
the \fIC\-t A\fP keystroke is bound to this command.
.TP
.B unbind \fIkey\fP
Unbind a keystroke.
.TP
.B version
Print ratpoison version.  By default, this is bound to \fIC\-t v\fP.
.TP
.B vsplit
Split the current window vertically in two. The last accessed window not
occupying a frame will be the second window.
.TP
.B windows
This displays the Program Bar which displays the windows you currently
have running. The number before each window name is used to jump to
that window. You can do this by typing \fIC\-t n\fP where \fIn\fP
is the number of the window. Note that only windows with numbers from
0 to 9 can be referenced using this keystroke.  To reach windows with
numbers greater than 9, use \fIC\-t '\fP and type the number at the
prompt.

After 5 seconds the Program Bar disappears.

This command is bound to \fIC\-t w\fP by default.

When invoked from the command-line like this,

$ ratpoison -c windows

Instead of a message bar, you will get a list of the windows printed
to stdout. This allows you to write more advanced scripts than simple
keyboard macros.

.SH OPTIONS
These are the command line options that are recognized by ratpoison:
.TP
\fB\-r\fR, \fB\-\-restart\fR
restart ratpoison
.TP
\fB\-k\fR, \fB\-\-kill\fR
kill ratpoison
.TP
\fB\-v\fR, \fB\-\-version\fR
output version information and exit
.TP
\fB\-h\fR, \fB\-\-help\fR
display this help and exit
.TP
\fB\-c\fR \fIcmd\fP, \fB\-\-command\fR \fIcmd\fP
Tell the running ratpoison process to execute the command
\fIcmd\fP. This is how ratpoison can be controlled from the
command-line or from a script.

.SH "REPORTING BUGS"
Report bugs to <ratpoison-devel@lists.sourceforge.net>.
.SH COPYRIGHT
Copyright \(co 2000, 2001 Shawn Betts
.br
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
.SH "SEE ALSO"
The full documentation for
.B ratpoison
is maintained as a Texinfo manual.  If the
.B info
and
.B ratpoison
programs are properly installed at your site, the command
.IP
.B info ratpoison
.PP
should give you access to the complete manual.
.SH AUTHOR
Ratpoison was written by Shawn Betts <sabetts@users.sourceforge.net>.

This manual page was written by Gergely Nagy <8@free.bsd.hu> and
updated by Shawn Betts <sabetts@users.sourceforge.net>.