non-void version of caps-remap
- Shell 100%
| capsremap.sh | ||
| README.md | ||
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.