I'm fairly new to Ubuntu (and Linux) and one of the first things I wanted to do was remap certain keys due to some keys that are located in "unwanted" positions. I thought that wasn't going to be so hard, but after reading through documentation and be redirected many times I ended up logging in as root and modifying the evdev file in /usr/share/X11/xkb
and changing the keycodes.
Apparently, you can configure your default keyboard on startup, but due to the amount of time that it has taken me to get some understanding towards this whole system, I haven't tried it as of yet. It seems like that would actually achieve to configure the default keyboard it in the "right" way.
At this moment I would like to know if it is possible to add another modifier key (eg. Ctrl) that is bound to another key (eg. <CTL2>
), but already having 2 modifier keys used (in other words, I have used 2 Ctrl keys, but want an additional one that behaves as either a left or right Ctrl key).
System Info
Ubuntu 17.04 (kernel information: Linux 4.10.0-37-generic #41-Ubuntu SMP Fri Oct 6 20:20:37 UTC 2017)
X Keyboard Extension (XKB) configuration data v.2.19
<FOO>
is a keycode, which you probably shouldn't change. the symbols for the typical control keys areControl_L
andControl_R
. see https://askubuntu.com/a/896297/669043 and the resources linked there. – quixotic Oct 25 '17 at 20:45https://github.com/sezanzeb/input-remapper
– KhalfaniW Nov 16 '23 at 02:25