I am using Enterprise Desktop Linux.
When a user logs into the system via NoMachine, I don’t want the user to be able to access the super keys / Windows key.
I have tried to use both the hooks in the node.cfg
UserScriptAfterSessionStart “/usr/bin/user-restriction.sh”
UserScriptBeforeSessionStart “/usr/bin/user-restriction.sh”
to execute a xmodmap command to bind the super key to nothing.
For example:
#!/bin/bash
xmodmap -e “keycode 133=”
will result in the following output :
xmodmap: unable to open display ‘:1002’
xmodmap -e ‘keycode 133=’
Is this the correct approach to changing keymappings with NoMachine?
Or
Is there config that can be manipulated to change the mappings ?
Thank you