You are not logged in.

#1 2016-01-01 05:26:18

cyker
Member
Registered: 2009-05-30
Posts: 86

X set keyboard mapping for specific processes?

I use setxkbmap to do some key swapping, which is fine in the host but causes trouble on virtual machines launched on the host. Is there a way to enable or disable such mappings for specific processes?


.

Offline

#2 2016-01-01 07:24:39

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,541
Website

Re: X set keyboard mapping for specific processes?

I doubt it - the key bindings are handled by the server before they are passed on to the clients.  You'd either need to remap them in the client (and/or change the behavior of the client) or you could have a function/alias to change the mapping run the vm, then change them back when the vm exits.  This would allow for the alternative mapping while the vm was running, but it would apply across all programs during that time.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB