[X2Go-User] grab keyboard (dwm)
Ulrich Sibiller
ulrich.sibiller at gmail.com
Thu Jul 4 14:37:46 CEST 2024
There's a system wide file: /etc/x2go/x2goagent.keystrokes. But you
can override it with a user-specific file. In this case this is
necessary because the default file of x2go does not contain the
autograb keystroke.
Uli
On Thu, Jul 4, 2024 at 2:31 PM sjomae <sjomae at mailbox.org> wrote:
>
>
> On 7/4/24 12:44 PM, Ulrich Sibiller wrote:
>
> Hi,
>
> I think this could be solved using autograb. Unfortunately the default
> config seems not to enable it. Try the following.
> - on the server side create ~/.x2go/config/keystrokes.cfg with this content:
> <!DOCTYPE NXKeystroke>
> <keystrokes>
> <keystroke action="close_session" Control="1" AltMeta="1" key="t" />
> <keystroke action="switch_all_screens" Control="1" AltMeta="1" key="f" />
> <keystroke action="fullscreen" Control="1" Shift="1" AltMeta="1" key="f" />
> <keystroke action="minimize" Control="1" AltMeta="1" key="m" />
> <keystroke action="defer" Control="1" AltMeta="1" key="e" />
> <keystroke action="force_synchronization" Control="1" AltMeta="1" key="j" />
> <keystroke action="resize" Control="1" AltMeta="1" key="r" />
> <keystroke action="viewport_move_left" Control="1" Shift="1"
> AltMeta="1" key="Left" />
> <keystroke action="viewport_move_left" Control="1" Shift="1"
> AltMeta="1" key="KP_Left" />
> <keystroke action="viewport_move_up" Control="1" Shift="1" AltMeta="1"
> key="Up" />
> <keystroke action="viewport_move_up" Control="1" Shift="1" AltMeta="1"
> key="KP_Up" />
> <keystroke action="viewport_move_right" Control="1" Shift="1"
> AltMeta="1" key="Right" />
> <keystroke action="viewport_move_right" Control="1" Shift="1"
> AltMeta="1" key="KP_Right" />
> <keystroke action="viewport_move_down" Control="1" Shift="1"
> AltMeta="1" key="Down" />
> <keystroke action="viewport_move_down" Control="1" Shift="1"
> AltMeta="1" key="KP_Down" />
> <keystroke action="viewport_scroll_left" Control="1" AltMeta="1" key="Left" />
> <keystroke action="viewport_scroll_left" Control="1" AltMeta="1"
> key="KP_Left" />
> <keystroke action="viewport_scroll_up" Control="1" AltMeta="1" key="Up" />
> <keystroke action="viewport_scroll_up" Control="1" AltMeta="1" key="KP_Up" />
> <keystroke action="viewport_scroll_right" Control="1" AltMeta="1" key="Right" />
> <keystroke action="viewport_scroll_right" Control="1" AltMeta="1"
> key="KP_Right" />
> <keystroke action="viewport_scroll_down" Control="1" AltMeta="1" key="Down" />
> <keystroke action="viewport_scroll_down" Control="1" AltMeta="1"
> key="KP_Down" />
> <keystroke action="reread_keystrokes" Control="1" AltMeta="1" key="k" />
> <keystroke action="autograb" Control="1" AltMeta="1" key="g" />
> <keystroke action="dump_clipboard" Control="1" Shift="1" AltMeta="1" key="c" />
> </keystrokes>
> - start a NEW session or disconnnect/reconnect a running session
> - press ctrl-alt-g in the session to activate autograb
>
> You can also activate autograb by default by adding one of these two
> to /etc/x2go/x2goagent.options:
> X2GO_NXAGENT_DEFAULT_OPTIONS+=" -autograb"
>
> or
>
> X2GO_NXOPTIONS="autograb=1"
>
>
> Does it work like you need it?
>
> Thanks, the second option works. I was wondering why the keystrokes.cfg is a user account based file and not a system wide file? The x2go server is running system wide right?
>
> keystrokes.cfg
More information about the x2go-user
mailing list