User Tools

Site Tools


wiki:advanced:nx-keyboard-shortcuts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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 remarks =====+===== General Remarks =====
  
-==== necessary X2go version ==== 
  
-The feature described below has only recently (as of 2012-12-06) been added to X2go and is currently **experimental**, further testing is necessary. You will need a new nightly build to try it out. +==== About this Wiki Page ====
- +
-==== about this Wiki page ====+
  
 This Wiki page is largely a copy of the ''README.keystrokes'' in This Wiki page is largely a copy of the ''README.keystrokes'' in
Line 13: Line 10:
 sync. sync.
  
-==== about nxagent ====+==== About nxagent ====
  
-nxagent is the process that an X2go _server_ executes. Therefore the configuration described below +''nxagent'' is the process that an X2Go Server executes. Therefore the configuration described below 
-is evaluated on an X2go Server and you have to place your configuration file on the _server_+is evaluated on an **X2Go Server** and you have to place your configuration file on the **server**
  
-===== Configurable keybindings in nxagent =====+===== Configurable Key Bindings in nxagent =====
  
-Keybindings in the redistributed x2go version of nxagent can now be configured+Key bindings in the redistributed X2Go version of nxagent (aka nx-libs, NX redistributed) can now be configured
 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 ''-keystrokefile'' command line parameter   * in the location given by the ''-keystrokefile'' command line parameter
-  * in the location given by the NXAGENT_KEYSTROKEFILE environment variable +  * in the location given by the ''NXAGENT_KEYSTROKEFILE'' environment variable 
-  * in ~/.nx/config/keystroke.cfg +  * in ''~/.nx/config/keystroke.cfg'' 
-  * in /etc/nx/keystroke.cfg+  * in ''/etc/nx/keystroke.cfg''
  
 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>
 <!DOCTYPE NXKeystroke> <!DOCTYPE NXKeystroke>
 <keystrokes> <keystrokes>
Line 50: Line 47:
 <keystroke action="fullscreen" key="space" Mod1="0" Mod2="0" Control="0" Shift="0" AltMeta="0" /> <keystroke action="fullscreen" key="space" Mod1="0" Mod2="0" Control="0" Shift="0" AltMeta="0" />
 </keystrokes> </keystrokes>
-</code>+</file>
  
 Each ''action'' defines an action to be executed when receiving that keystroke. A Each ''action'' defines an action to be executed when receiving that keystroke. A
Line 58: Line 55:
 Keys are given as a combination of ''key'' and (optionally) a number of Keys are given as a combination of ''key'' and (optionally) a number 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 +''XStringToKeysym'' function. A list of possible keys can be found in 
-/usr/include/X11/keysymdef.h, the names are specified without the leading+''/usr/include/X11/keysymdef.h'', the names are specified without the leading
 ''XK_''. Evaluation is case-sensitive, so, ''space'' and ''Escape'' will work while ''XK_''. Evaluation is case-sensitive, so, ''space'' and ''Escape'' will work while
 ''Space'' and ''escape'' won't. ''Space'' and ''escape'' won't.
  
-Modifiers are given as boolean attributes, possible modifiers are Mod1, Mod2, +Modifiers are given as boolean attributes, possible modifiers are ''Mod1''''Mod2''
-Mod3, Mod4, Control, Shift, Lock. Sensible combinations strongly depend on your +''Mod3''''Mod4''''Control''''Shift''''Lock''. Sensible combinations strongly depend on your 
-keyboard configuration, but usually you will need Mod1 and Control. Boolean in+keyboard configuration, but usually you will need ''Mod1'' and ''Control''. Boolean in
 this context means ''0'', ''false'' and an unspecified attribute are false, anything this context means ''0'', ''false'' and an unspecified attribute are false, anything
 else is considered true. else is considered true.
wiki/advanced/nx-keyboard-shortcuts.txt · Last modified: 2019/05/11 16:33 by uli42