You are not logged in.
Please forgive my poor English.
I want to remap some keys of built-in keyboard on a laptop. I show below the remap list.
Caps_lock -> Control_L
Control_L -> Super_L
Control_R -> Super_L
I used to remap it using Xmodmap. However, the solution remaps keys of external keyboards, also.
Therefore I tried the following procedure.
First, I checked the device name of the built-in keyboard.
$ grep 'keyboard' /proc/bus/input/devices
N: Name="AT Translated Set 2 keyboard"Then, I checked the keycode.
$ xmodmap -pke | grep -P "= (Caps_lock|Control_[LR]|Super_L)"
keycode 37 = Control_L NoSymbol Control_L
keycode 66 = Caps_Lock NoSymbol Caps_Lock
keycode 105 = Control_R NoSymbol Control_R
keycode 133 = Super_L NoSymbol Super_LAnd I wrote the following xorg.conf file.
# cat > /etc/X11/xorg.conf.d/10-keyboard.conf <<EOS
Section "InputClass"
Identifier "Built-in keyboard"
MatchIsKeyboard "on"
MatchProduct "AT Translated Set 2 keyboard"
Option "event_key_remap" "66=37 37=133 105=133"
EndSectionHowever, this method doesn't go well, and the keys aren't remapped.
If you have any good idea, please tell me it.
Offline