ratpoison-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RP] runtime keybinding and .ratpoisonrc


From: Ryan Yeske
Subject: [RP] runtime keybinding and .ratpoisonrc
Date: 24 Feb 2001 16:47:35 -0800

You can now bind keys at runtime.  Works sorta like screen.

:bind <key> <command with args>

The binding goes under the sole prefix map.  So, for instance,

:bind m exec xmag
or
:bind ^m exec xmag

<key> is an XKeySym, do a xmodmap -pke to find out the names of the
keysyms on your setup.  To bind things to keys like escape, tab and
enter (and even bracketleft, comma, etc), you need to specify the
exact KeySym string.  Example:

:bind F1 exec xterm -e lynx www.gnu.org

(screen's :bindkey command is not yet supported which will allow you
to bind keys directly, not only under the prefix key.  This is next.
So all you punters out there who want Alt-Tab will be able to have
it.)

Also, you can now put commands in $HOME/.ratpoisonrc.  The location of
this file is not yet configurable.

Example .ratpoisonrc:

exec xsetroot -solid black
bind R exec ~/src/ratpoison/src/ratpoison --restart
bind N exec netscape
bind backslash quit

This is all highly nonsolid.  Test it, break it, fix it and send in
patches.

TODO: document this stuff...

Ryan

--
We should release a new version one day...



reply via email to

[Prev in Thread] Current Thread [Next in Thread]