diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-04-03 21:44:05 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-04-03 21:44:05 +0200 |
commit | 25d38bf360db8f02cb5d6f7c6861dcf9cc5fb206 (patch) | |
tree | c54c8522db340ff5984483a7530011a7bb23c079 /doc/nxagent | |
parent | 147371a28bb23b4dd383ceccff0e279e9dba3bbe (diff) | |
parent | ee18cd43d873bc814ca40faabd29cc486061969f (diff) | |
download | nx-libs-25d38bf360db8f02cb5d6f7c6861dcf9cc5fb206.tar.gz nx-libs-25d38bf360db8f02cb5d6f7c6861dcf9cc5fb206.tar.bz2 nx-libs-25d38bf360db8f02cb5d6f7c6861dcf9cc5fb206.zip |
Merge branch 'uli42-pr/cleanup_keystroke' into 3.6.x
Attributes GH PR #404: https://github.com/ArcticaProject/nx-libs/pull/404
Diffstat (limited to 'doc/nxagent')
-rw-r--r-- | doc/nxagent/README.keystrokes | 96 | ||||
-rw-r--r-- | doc/nxagent/README.keystrokes.debug | 27 |
2 files changed, 75 insertions, 48 deletions
diff --git a/doc/nxagent/README.keystrokes b/doc/nxagent/README.keystrokes index 96bc158d2..3d55f5096 100644 --- a/doc/nxagent/README.keystrokes +++ b/doc/nxagent/README.keystrokes @@ -1,6 +1,6 @@ Configurable keybindings in nxagent -Keybindings in the redistributed x2go version of nxagent can now be configured +Keybindings in the redistributed x2go version of nxagent can be configured by the user. This is done via a configuration file. File location @@ -40,29 +40,31 @@ The configuration file is XML with the following format: <keystroke action="fullscreen" key="space" Mod1="0" Mod2="0" Control="0" Shift="0" AltMeta="0" /> </keystrokes> -Each 'action' defines an action to be executed when receiving that keystroke. A -list of possible actions is given below. Some of those actions are only -available with debug builds of nxagent. +Each 'action' defines an action to be executed when receiving that +keystroke. A list of possible actions is given below. Some of those +actions are only available with debug builds of nxagent. 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 XStringToKeysym function. A list of possible keys can be found in -/usr/include/X11/keysymdef.h, the names are specified without the leading -'XK_'. Evaluation is case-sensitive, so, 'space' and 'Escape' will work while -'Space' and 'escape' won't. +/usr/include/X11/keysymdef.h, the names are specified without the +leading 'XK_'. Evaluation is case-sensitive, so, 'space' and 'Escape' +will work while 'Space' and 'escape' won't. -Modifiers are given as boolean attributes, possible modifiers are Mod1, Mod2, -Mod3, Mod4, Mod5, Control, Shift, Lock. Sensible combinations strongly depend on your -keyboard configuration, but usually you will need Mod1 and Control. Boolean in -this context means '0', 'false' and an unspecified attribute are false, anything -else is considered true. +Modifiers are given as boolean attributes, possible modifiers are +Mod1, Mod2, Mod3, Mod4, Mod5, Control, Shift, Lock. Sensible +combinations strongly depend on your keyboard configuration, but +usually you will need Mod1 and Control. Boolean in this context means +'0', 'false' and an unspecified attribute are false, anything else is +considered true. Everything in this file is case-sensitive. Unknown lines are ignored. -Keybindings are evaluated from top to bottom, so if a keybinding matches, other -keybindings further down will be ignored. The contents of the file replaces the -default keybindings, and only one file is read, no merging between different -configuration files is done. This also means that an empty or invalid configuration -file deactivates all keybindings. +Keybindings are evaluated from top to bottom, so if a keybinding +matches, other keybindings further down will be ignored. The contents +of the file replaces the default keybindings, and only one file is +read, no merging between different configuration files is done. This +also means that an empty or invalid configuration file deactivates all +keybindings. If an attribute occurs more than once in a line the last one wins. @@ -71,43 +73,41 @@ List of possible 'action' attributes: close_session This terminates the session. + fullscreen - Switches the client window into or out of fullscreen mode, using only the current head. + Switches the client window into or out of fullscreen mode, using + only the current head. + switch_all_screens - Switches the client window into or out of fullscreen mode, using all available heads. + Switches the client window into or out of fullscreen mode, using all + available heads. + minimize - This will minimize the client window (even for fullscreen sessions.) -left -up -right -down + This will minimize the client window (even for fullscreen sessions). + resize - This action switches between the auto-resize and viewport mode - (static size). The default is auto-resize. In viewport mode one can - use the 'viewport_move_up', 'viewport_move_down', - 'viewport_move_left' and 'viewport_move_right' actions to move - within the image. + This action switches between the auto-resize (default) and viewport + mode. In viewport mode the xserver screen size stays static even + if the nxagent window is resized. You will possibly only see a part of + the screen and can scroll around using the following actions: +viewport_move_left/up/right/down + Moves the viewport left/up/right/down by the width resp. height of + the visible area. +viewport_scroll_left/up/right/down + Scrolls the viewport left/up/right/down with increasing speed + (maximum step size is 200px). + defer - activate/deactivate deferred screen updates. + Activates/deactivates deferred screen updates. + ignore - Makes it possible to add 'ignore', as in nothing happens when certain keys are pressed. -viewport_move_left - Moves the image viewport to the left. -viewport_move_up - Moves the image viewport up. -viewport_move_right - Moves the image viewport to the right. -viewport_move_down - Moves the image viewport down. + Ignores the following keystroke, nothing will happen when this + keystroke is pressed. + reread_keystrokes - forces nxagent to re-read the keystroke - configuration. Useful to add/changes keystrokes for a running - session. + Forces nxagent to re-read the keystroke configuration. Useful to + add/change keystrokes to a running session. -Only in builds with certain debugging options enabled, ignored otherwise: force_synchronization - Forces the drawing of elements to be synchronized which can fix some visual bugs. -debug_tree -regions_on_screen -test_input -deactivate_input_devices_grab + Forces immediate drawing of elements to be synchronized which can + fix some visual bugs. diff --git a/doc/nxagent/README.keystrokes.debug b/doc/nxagent/README.keystrokes.debug new file mode 100644 index 000000000..85ec2613a --- /dev/null +++ b/doc/nxagent/README.keystrokes.debug @@ -0,0 +1,27 @@ +Configurable keybindings for debugging nxagent + +Some keystrokes are only available in special debug builds of nxagent +and will be ignored otherwise. These are + +debug_tree + Show the window trees of both internal and external + windows. Included if DEBUG_TREE is defined. + +regions_on_screen + Make corrupted regions visible. Included if DUMP is defined. + +test_input + Activate/deactive input device debugging. Included if NX_DEBUG_INPUT + is defined. + +deactivate_input_devices_grab + Release grab of input devices. Included if NX_DEBUG_INPUT is + defined. + +They can be configured by adding these lines to keystrokes.cfg, below +keystrokes represent the default: + +<keystroke action="debug_tree" Control="1" AltMeta="1" key="q" /> +<keystroke action="regions_on_screen" Control="1" AltMeta="1" key="a" /> +<keystroke action="test_input" Control="1" AltMeta="1" key="x" /> +<keystroke action="deactivate_input_devices_grab" Control="1" AltMeta="1" key="y" /> |