Quickstart: Configure keyd for basic remapping
masterTo set up a basic configuration (e.g., mapping Caps Lock to Escape on tap and Control on hold):
- Ensure
keydis installed and running (sudo systemctl enable --now keyd). - Create or edit
/etc/keyd/default.conf. - Add your configuration rules.
- Reload the configuration to apply changes.
You can use keyd monitor to find the exact names of your keys. Note that while keyd is running, keyd monitor shows the output of keyd; to see original hardware events, stop keyd first.
Note: If you use a mouse that emits keys (like Logitech MX Master), you may need to explicitly blacklist its ID in the [ids] section to prevent it from being caught by the wildcard *.
[ids]
*
[main]
# Maps capslock to escape when pressed and control when held.
capslock = overload(control, esc)
# Remaps the escape key to capslock
esc = capslock