non-void version of caps-remap
Find a file
2026-04-22 22:05:26 +02:00
capsremap.sh init 2026-04-22 22:05:26 +02:00
README.md init 2026-04-22 22:05:26 +02:00

capsremap

Remaps Caps Lock to Enter at the kernel level via udev hwdb.

  • Works on X11, Wayland, and TTY
  • Persists across reboots and suspend/wake
  • No extra packages required — just systemd (standard on all major distros)

Usage

sudo ./capsremap.sh install     # apply the remap (default)
sudo ./capsremap.sh uninstall   # remove the remap
sudo ./capsremap.sh status      # check if remap is active

The script will prompt for sudo automatically if not run as root.

How it works

Writes a hwdb rule to /etc/udev/hwdb.d/90-caps-to-enter.hwdb that remaps the Caps Lock scancode to Enter at the kernel input level, covering AT/PS2, USB, and Bluetooth keyboards. Changes take effect immediately via udevadm trigger.