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
Hi,
I think this could be solved using autograb. Unfortunately the default config seems not to enable it. Try the following.
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 <sjomae@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
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
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@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
On 7/4/24 2:37 PM, Ulrich Sibiller wrote:
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.
So do I understand it right, that one can also add the autograb keystroke to the system wide file?
With the first option, ctrl-alt-g finishes / quits the session (as also noticed on IRC yesterday by someone else).