| RATPOISON(1) | General Commands Manual | RATPOISON(1) |
ratpoison — window
manager without mouse dependency
ratpoison |
[-hv] |
ratpoison |
[-d dpy]
[-s num]
[-f file] |
ratpoison |
[-d dpy]
[-s num]
[-i] -c
command [-c
command ...] |
ratpoison is a Window Manager without fat
library dependencies, fancy graphics or rat dependence.
The screen can be split into non-overlapping frames. All windows are kept maximized inside their frames.
All interaction with the window manager is done through
keystrokes. ratpoison has a prefix map to minimize
key clobbering.
The options are as follows:
-c,
--commandratpoison
-c "echo hello
world"-d,
--display display-f,
--file filenameratpoison will try
$HOME/.ratpoisonrc and if that does not exist
/etc/ratpoisonrc and execute each command when
starting up.-h,
--help-i,
--interactive-c or
--command in interactive mode. That means it will
behave exactly as if called with C-t : like
prompting for missing arguments and things like that.-s,
--screen number-v,
--versionTo avoid conflicts with other programs, all default ratpoison key
bindings start with an escape key, per default C-t
(read Control-t). Some important default key bindings:
C-t
?C-t
cC-t
nC-t
pC-t
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9C-t
kC-t
KC-t
s |
SC-t
Tab |
Left
| Up |
Right
|
DownC-t
QC-t
:Further default key bindings can be found in parentheses after the commands in the next section.
abortC-t C-g) Do nothing and that successfully.
(Useful if you pressed C-t in error).addhook
event commanddeletewindownewwindowkeyC-t).quitratpoison.restartratpoison.switchframeswitchgroupswitchscreenswitchwinalias
alias commandbind
key commanddefinekey
root key command"banishC-t b) Banish the rat cursor to the lower right
corner of the screen.banishrelchdir
[directory]ratpoison to directory. If
nothing is given, change it to the value of the environment variable
"HOME".clrunmanagedcnextnext but switch to the next window with
another resource class than the current one. (That means the next window
belonging to another type of application than the current one.)cprevprev but switch to the previous window with
another resource class than the current one. (That means the previous
window belonging to another type of application than the current
one.)colon
ratpoison-command (C-t :)cotherother but switch to the window of the current
group that was last accessed and has another resource class but is not
currently visible.curframe
(C-t F)definekey
keymap key commandtop normally only containing
C-t, which reads a key from
root, containing all the normal commands.
Note that you have to describe ":" by
"colon", "!" by "exclam" and so on. If you
cannot guess a name of a key, try either C-t
key and look at the error message, or try
:describekey root and
pressing the key.
dedicate
[0 | 1]1) or
promiscuous (0).
A dedicated frame will not accept new windows. When new windows are to be focused, they will be opened in a non-dedicated frame instead.
If no argument is given, toggle the current dedicateness. By default no windows are dedicated.
delete
(C-t k)delkmap
keymapnewkmap. The keymaps
top (or whatever was specified by
set topkmap) and
root cannot be deleted.describekey
keymapreadkey,
describekey shows only the command in
keymap, that would be executed by
readkey.echo
textratpoison
message.escape
keyStrictly speaking it updates the
readkey root command in
the keymap top to key, the
other binding in root to
key, and meta binding in
root to key without
modifiers or C-key if
key has no modifiers. (If
set topkmap was called
with an argument other than top that will be
used instead of top.)
exchangedown
(C-t C-Down)exchangeleft
(C-t C-Left)exchangeright
(C-t C-Right)exchangeup
(C-t C-Up)exec
shell-command (C-t !)execa
shell-commandratpoison gets this
command.execf
frame shell-commandfdump
[screenno]focus
(C-t Tab)focuslastfocusleft
(C-t Left)focusdown
(C-t Down)focusright
(C-t Right)focusprevfocusup
(C-t Up)frestore
framesfdump.fselect
[frameno] (C-t f)If no argument is given, show a frame selector in each frame and wait for a key to be pressed. If the key matches an existing frame selector, this frame gets focused.
Frame selectors are by default the numbers starting with zero,
but they can be changed by setting
framesels.
gdelete
[group]default is created. The group has to be empty,
otherwise it cannot be deleted.getenv
variablegetselgmerge
groupgmove
groupgnew
groupgnewbg
groupgnextgnumber
[old new]gothergprevgravity
[nw | w |
sw | n |
c | s |
ne | e |
se]grenamegroupsgselect
grouphelp
[keymap]root.hsplit
[l/p |
[-]pixels]
(C-t S)/’) are given, the left one is
l times the pth part and the
right one (p -
l) times the pth part of the
prior width. Otherwise the right half is pixels wide
or the left one is pixels wide, depending whether
there is ‘-’ in front of the number
or not.inextnext but switch to the next window with the
same resource class as the current one. (That means the next window
belonging to the same application as the current one.)info
(C-t i)set
winname”.)iprevprev but switch to the previous window with
the same resource class as the current one. (That means the previous
window belonging to the same application as the current one.)iotherother but switch to the window of the current
group that was last accessed and has the same resource class but is not
currently visible.kill
(C-t K)lastmsg
(C-t m)license
(C-t V)ratpoison's license.link
key [keymap]root.listhook
eventaddhook to be
executed when even event occurs.meta
[key] (C-t t)C-t)
to the current window. If a key is specified, this
is sent instead. Note that some applications by default ignore the
synthetic key that is sent using this command as it is considered a
security hole. xterm is one such application.msgwait
[seconds]newkmap
keymapdefinekey and can be called with
readkey.newwm
new-window-managerratpoison and execute
new-window-manager instead.next
(C-t Return | C-t n |
C-t space)nextscreen
(C-t N)number
new [old]only
(C-t Q)other
(C-t C-t)prev
(C-t p)prevscreen
(C-t P)prompt
[prompt]ratpoison will ask the user for input, showing
prompt (or a single colon, if no argument is given)
and output the input the user has made. Note that this command probably
does not make much sense in interactive mode.putsel
x-selectiongetsel.quitratpoison.ratinforatrelinforatwarp
x yratrelwarp
deltax deltayratclick
[button]rathold
{up | down}
[button]readkey
keymapratpoison will change the rat cursor to a square
if waitcursor is set. This command is perhaps best
described with its usage in the default configuration: by pressing
C-t, which is the only key in the keymap top , the
command "readkey
root" is executed. The next key then executes
the command in keymap root belonging to this
command.redisplay
(C-t l)ratpoison)redo
(C-t U)undo of frame changes.remhook
event commandlisthook hook" to
get a list of all attached commands.remove
(C-t R)removedown
(C-t M-Down)removeleft
(C-t M-Left)removeup
(C-t M-Up)removeright
(C-t M-Right)resize
[deltax deltay] (C-t r)If in interactive mode no arguments are supplied, resize the current frame interactively:
While resizing interactively, changes are in multiples of the
amount of pixels given by set
resizeunit (by default 10).
restartratpoison.rudeness
[rudeness]sdumpselect
{- | name |
number} (C-t ')- is given.set
[variable [value]]ratpoison
variables and their values.
If one argument is given, output the value of
ratpoison variable
variable. Otherwise set
variable to value. What
values are valid depends on the variable. See the section
VARIABLES later in this document for
details.
setenv
variable valueratpoison.)sfdumpfdump, but not
limited to one screen, but all screens at once and with the screen number
after each frame.sfrestore
framessfdump.shrinksplit
[split] (C-t s)vsplitsource
fileratpoison command.sselect
screennumberstartup_message
{on | off}ratpoison will show a startup
message or not. This command is deprecated, please use the
startupmessage variable instead.swap
dest-frame [src-frame]
(C-t x)time
(C-t a)title
newname (C-t A)ratpoison commands will only know the window under
the new name.tmpwm
tmpwmunalias
aliasunbind
keyundefinekey
root keyundefinekey
keymap keyundo
(C-t _, C-t u)The amount of steps that can be undone is specified by the variable maxundos.
unmanage
[name]In non-interactive mode calling it without arguments will print the list.
The list can be cleared again by calling
clrunmanaged.
unsetenv
variableverbexec
cmdlineversion
(C-t v)vsplit
[l/p |
pixels-from-top |
-pixels-from-bottom]
(C-t s)/”) are given, the upper one is
l times the pth part and the
lower one (p -
l) times the pth part of the
prior height. Otherwise the lower one is pixels from
bottom wide or the upper one pixels from top
high, depending whether there is a
“-” in front of the number or
not.warp
{on | off}windows
[format] (C-t w)The messages are shown in columns or rows depending on the
value of winliststyle in the format set by
set winfmt. The following
substitutions happen in format:
%a%c%f%g%h%H%i%p%l%MMaxsize, if it specifies a maximum
size%n%s*’ is active
window, ‘+’ would be chosen by
other,
‘-’ otherwise)%S%tset
winname),%TTransient”, if it is
a transient window%w%W%x%%%’Additionally there can be a positive decimal integer number
between the percent sign and the format string to specify the length
this value should be truncated to if longer. (For example:
%20t)
In non-interactive mode, output the list of windows in the current group line by line. The format string can be overwritten by the optional parameter format.
ratpoison variables can be shown and set
with set. The following variables are supported:
resizeunit
pixelsresize will
add/subtract in each step.
Default is 5.
maxundos
numberratpoison can undo with
the undo command.
Default is 20.
wingravity
{nw | w |
sw | n |
c | s |
ne | e |
se}gravity command, which changes
the gravity of an existing window: cardinal points or numbers 1 to 9.
Default is nw.
maxsizegravity
{nw | w |
sw | n |
c | s |
ne | e |
se}gravity command,
which changes the gravity of an existing window: cardinal points or
numbers 1 to 9.
Default is c.
transgravity
{nw | w |
sw | n |
c | s |
ne | e |
se}gravity command, which
changes the gravity of an existing window: cardinal points or numbers 1 to
9.
Default is c.
bargravity
{nw | w |
sw | n |
c | s |
ne | e |
se}Default is ne.
font
fontratpoison use font
font.padding
left top right bottomDefault is 0 0 0 0.
border
pixelsDefault is 1.
barborder
pixelsratpoison's
prompt or message windows is.
Default is 1.
inputwidth
pixelsDefault is 200.
barinpadding
{0 | 1}1) or at the edge of the window area
(0).
Default is 0.
topkmap
kmapratpoison grabs directly.
The default value is top.
waitcursor
{0 | 1}1) or not (0) See
readkey and describekey.
Default is 1.
winfmt
formatwindows
command.
Default is %n%s%t.
winname
{title | name |
class}ratpoison:
Default is title.
fgcolor
colorratpoison
creates.
Default is black.
bgcolor
colorratpoison
creates.
Default is white.
fwcolor
colorDefault is black.
bwcolor
colorDefault is black.
barpadding
x yratpoison windows to
x and vertical padding to y.
Default is 4 0.
winliststyle
{row | column}Default is column.
framesels
selectorsfselect uses. The
first character is the selector for the first frame, the second character
is the selector for the second frame and so on.
Using this variable, one can directly access more than 10 frames.
Default is an empty string, which is equivalent to "0123456789".
historysize
numberDefault is 20.
historycompaction
{0 | 1}Default is 1 (on).
historyexpansion
{0 | 1}msgwait
secondsframemsgwait
secondsCurrent frame’
indicator is shown. If seconds is zero, wait until
the next interactive command. If seconds is
-1, don't show any message.startupmessage
0 |
1warp
0 |
1Default is 0 (off).
rudeness
numbernumber is a bitwise OR of the following values:
Default is all allowed i.e. 15.
The ratpoison utility exits 0 on
success, and >0 if an error occurs.
Upstream author is Shawn Betts <sabetts@gmail.com>.
See the /usr/share/doc/ratpoison/AUTHORS file for other contributors.
This manual page was written by Bernhard R. Link <brlink@debian.org>. The conversion to the mdoc(7) language (http://mdocml.bsd.lv) was done by Jeremie Courreges-Anglas <jca@wxcvbn.org>.
Please report any bug you find to the ratpoison mailing-list, <ratpoison-devel@nongnu.org>.
| 2017-03-09 | Debian |