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?

Uli

On Thu, Jul 4, 2024 at 12:17 PM sjomae <sjo...@mailbox.org> wrote:
>
> Hi,
>
> I'm testing out x2go, so far so good. Seems to work better for full
> session setups then xpra (I didn't test rustdesk yet).
>
> I was wondering how the session could 'grab the keyboard'.
>
> I'm using a tiling wm, dwm, which is keyboard / keybindings based. My
> client machine also runs dwm and currently it is that dwm who is picking
> up the keybindings. How can I make the x2go session react on the dwm
> keybinding and how to switch between those (like you can in a virtual
> machine afaik).
>
> Thanks in advance,
>
> /s
>
> _______________________________________________
> x2go-user mailing list
> x2go-user@lists.x2go.org
> https://lists.x2go.org/listinfo/x2go-user
_______________________________________________
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user

Reply via email to