Skip to content

Instantly share code, notes, and snippets.

@simons-public
Created August 22, 2025 15:28
Show Gist options
  • Select an option

  • Save simons-public/41c162de8e948eb657592c3e4120a60d to your computer and use it in GitHub Desktop.

Select an option

Save simons-public/41c162de8e948eb657592c3e4120a60d to your computer and use it in GitHub Desktop.
Remap capclock to ctrl at evdev level
#
# /etc/udev/hwdb.d/90-capslock-to-ctrl.hwdb
#
# Remap CapsLock (0x3a) to Left Control for ANY keyboard
#
# For immediate effect, run:
# > systemd-hwdb update
# > udevadm trigger -s input
evdev:input:*
KEYBOARD_KEY_3a=leftctrl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment