One of the goals of ratpoison is to allow users to create exciting customization to fit their specific needs. Hooks allow a user to latch scripts onto certain events.
Each hook contains a list of commands to be executed when the appropriate event occurs in ratpoison. For example, if you want to warp the rat to corner of the screen every time you press a top level bound key, you could add this to you .ratpoisonrc file:
addhook key banish
That should keep the rat out of your way.
addhook hook command | Command |
Add a command to hook. When the hook is run, command
will be executed.
The following hooks are available:
|
remhook hook command | Command |
Remove command from the hook. See addhook for a list
of available hooks.
|
listhook hook | Command |
List the commands that will be run when hook is fired. |