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

Both sides previous revision Previous revision
Next revision Both sides next revision
wiki:advanced:nx-keyboard-shortcuts [2013/03/14 23:18]
sunweaver [File format]
wiki:advanced:nx-keyboard-shortcuts [2013/03/20 14:15]
morty Syntax
Line 3: Line 3:
 ===== 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 ====
Line 16: Line 13:
  
 ''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 Key Bindings in nxagent ===== ===== Configurable Key Bindings in nxagent =====
Line 27: Line 24:
 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
Line 38: Line 35:
 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