Custom keybindings

By editing $HOME/.radium/keybindings.conf, you can add custom keybindings.

Example:

*
import radium as ra
*

Z CTRL_L : ra.openAboutWindow
...will change left ctrl + z into open the about window instead of undoing. Z was the name of the key, while CTRL_L was the qualifier key.

A key binding definition must start with the name of a key, followed by 0 or more qualifiers.

The qualifiers are CTRL_L, CTRL_R, SHIFT_L, SHIFT_R, EXTRA_L, ALT_L, ALT_R, MOUSE_EDITOR, MOUSE_MIXER, MOUSE_SEQUENCER, MOUSE_MIXERSTRIPS, and UP.

The MOUSE_EDITOR qualifier is true if the mouse pointer is placed in the editor, and so forth.

The UP qualifier is true when releasing the key instead of pressing it.

Radium needs to be restarted for the new keybindings to take effect.

For more examples, look at the default keybindings.conf file, and look at protos.conf for a complete list of available functions.

If you want to run S7 Scheme code, or Python code, use the functions ra.evalScheme or ra.evalPython:

*
import radium as ra
*

X CTRL_L : ra.evalPython "ra.openAboutWindow()"
C CTRL_L : ra.evalScheme "(ra:open-about-window)"

Note that any code between the asterisks are executed as python code when Radium starts up. ("import radium as ra" is pure python code). This makes it posssible to add custom functions and classes in a convenient way.