[SOLVED] How to remap keyboard key?

Hi there!
My microlaptop 9`` laptop (SoC Intel) hasn’t native Insert keyboard key

Goal: remap CapsLock -> Insert


Method:

# create necessery dir and file at:
# /etc/udev/hwdb.d/70-keyboard.hwdb
# that contains overriding assigns:

# fit to most AT built-in keyboard
evdev:atkdb:dmi:*  
  KEYBOARD_KEY_3a=insert

# fit to any usb keyboard
keyboard:usb:v*p*
  KEYBOARD_KEY_3a=insert

# update hwdb.bin
systemd-hwdb update

# reload hwdb.bin
sudo udevadm trigger

Now CapsLock key does function of Insert

1 Like

I’m glad you got this figured out. Thank you for sharing your solution :slight_smile: