I'm trying to map LSGT
(the key on European keyboards) to "left control" using xkb
with no success (under X and ubuntu 18).
I tried the following:
- replacing the
LSGT
line with
key <LSGT> { [Control_L] };
and adding modifier_keys
tag before the block
in the body of the layout I use in /usr/share/xkb/symbols/fr
(in the bepo section since this is the layout I use)
- following roughly the step detailed here and here: more precisely I added the following code at the end of
.../xkb/symbols/ctrl
partial modifier_keys alphanumeric_keys
xkb_symbols "lsgt_lctrl" {
key <LSGT> { [Control_L] };
};
(the alphanumeric tag is here because I'm not clear wether the tags refer to the key mapping or the actual keys and I guess LSGT
is an alphanumeric key I also tried removing it)
the following line in .../xkb/rules/evdev
under ! option = symbols
ctrl:lsgt_lctrl = +ctrl(lsgt_lctrl)
and the following line under ! option
in evdev.lst
ctrl:lsgt_lctrl Use LSGT as left control
using dconf
editor I added ['ctrl:lsgt_lctrl']
in the xkb
options
Then I rebooted, since this didn't work I tried deleting everything in /var/lib/xkb
(which contained only a README.compiled
file) and rebooting again and it still doesn't work.
I remember using a similar-ish procedure had worked under a previous linux install so I'm confused.
Thank you for reading me, this is my first time asking a question in this type of forum and I'm fairly new to linux so let me know if I'm doing so in a wrong or annoying way.