Remapping the AltGr key to Control
wettstein509 at solnet.ch
wettstein509 at solnet.ch
Sun Feb 26 08:28:48 PST 2012
> This file is located in "/home/quidh4/.xkb/symbols/test"
>
> How can I load that configuration without loosing other keys?
>
> I tried this command "setxkbmap -I$HOME/.xkb test -option test:test_mapping"
> but I had to reboot my system because I lost the gb layout for other keys,
> and they became dead keys.
I believe to use 'option test:test_mapping', you have to enter your new
option into the rules/base file. To do without touching the rules, you
can use the notation 'test(test_mapping)'.
Also, after some experimentation, I am under the impression that
setxkbmap does not pass the -I argument to xkbcomp. A workaround is to
use the -print option and to invoke xkbcomp explicitly.
To test, you can run something like this:
setxkbmap 'gb+test(test_mapping)' -print | xkbcomp -I$HOME/.xkb -xkb - -
and check the output. Then, to verify that the keymap compiles:
setxkbmap 'gb+test(test_mapping)' -print | xkbcomp -I$HOME/.xkb - test.xkm
To really load the map to the server (assuming the display is :0):
setxkbmap 'gb+test(test_mapping)' -print | xkbcomp -I$HOME/.xkb - :0
Of course, you can skip the first two steps, but they will help to
reduce the number of times you have to reboot.
Andreas
More information about the xorg
mailing list