This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
wiki:advanced:nx-keyboard-shortcuts [2013/03/14 23:15] sunweaver created |
wiki:advanced:nx-keyboard-shortcuts [2013/03/20 14:15] morty Syntax |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Customize NX Keyboard Shortcuts ====== | ====== Customize NX Keyboard Shortcuts ====== | ||
- | ===== General | + | ===== General |
- | ==== necessary X2go version ==== | ||
- | The feature described below has only recently (as of 2012-12-06) been added to X2go and is currently **experimental**, | + | ==== About this Wiki Page ==== |
- | + | ||
- | ==== about this Wiki page ==== | + | |
This Wiki page is largely a copy of the '' | This Wiki page is largely a copy of the '' | ||
Line 13: | Line 10: | ||
sync. | sync. | ||
- | ==== about nxagent ==== | + | ==== About nxagent ==== |
- | nxagent is the process that an X2go _server_ | + | '' |
- | is evaluated on an X2go Server and you have to place your configuration file on the _server_. | + | is evaluated on an **X2Go |
- | ===== Configurable | + | ===== Configurable |
- | Keybindings | + | Key bindings |
by the user. This is done via a configuration file. | by the user. This is done via a configuration file. | ||
- | ===== File location | + | ===== File Location |
nxagent searches for the configuration file in the following order: | nxagent searches for the configuration file in the following order: | ||
* in the location given by the '' | * in the location given by the '' | ||
- | * in the location given by the NXAGENT_KEYSTROKEFILE environment variable | + | * in the location given by the '' |
- | * in ~/ | + | * in '' |
- | * in / | + | * in '' |
If none of those files is accessible, the default configuration is used which | If none of those files is accessible, the default configuration is used which | ||
is the same as the old, traditional nxagent keybindings. | is the same as the old, traditional nxagent keybindings. | ||
- | ===== File format | + | ===== File Format |
The configuration file is XML with the following format: | The configuration file is XML with the following format: | ||
- | <code xml> | + | <file xml keystroke.cfg> |
< | < | ||
< | < | ||
Line 50: | Line 47: | ||
< | < | ||
</ | </ | ||
- | </code> | + | </file> |
Each '' | Each '' | ||
Line 58: | Line 55: | ||
Keys are given as a combination of '' | Keys are given as a combination of '' | ||
modifiers. The key attribute is evaluated into a X11 key via the usual | modifiers. The key attribute is evaluated into a X11 key via the usual | ||
- | XStringToKeysym function. A list of possible keys can be found in | + | '' |
- | / | + | '' |
'' | '' | ||
'' | '' | ||
- | Modifiers are given as boolean attributes, possible modifiers are Mod1, Mod2, | + | Modifiers are given as boolean attributes, possible modifiers are '' |
- | Mod3, Mod4, Control, Shift, Lock. Sensible combinations strongly depend on your | + | '' |
- | keyboard configuration, | + | keyboard configuration, |
this context means '' | this context means '' | ||
else is considered true. | else is considered true. |