keyd is a C daemon that remaps keyboard input on Linux using evdev and uinput, with a declarative config format and per-application maps.
Overview
keyd addresses gaps in Linux desktop remapping tools that often depend on X11-only utilities. It runs as a system-wide daemon that intercepts and rewrites keyboard events through kernel input primitives.
Configuration files describe layers, oneshot modifiers, overload keys, and macros. A companion application mapper reads per-app sections so the same physical keys behave differently in specific programs.
The project documents example configs that emulate familiar modifier behavior, turn Caps Lock into control or escape, and map navigation keys. Distribution packages exist for several Linux families, plus optional USB-gadget support on single-board computers.
keyd targets speed and simplicity in a small C codebase compared with heavier alternatives, while covering features such as layering similar to custom keyboard firmware.
Key features
- evdev and uinput remapping
- Declarative config language
- Per-application key maps
- Oneshot and overload modifiers
- Macro and layer support
- Application mapper helper
- Distribution packages for Linux
Use cases
- Homogeneous shortcuts across Wayland
- Caps Lock to Control remaps
- Vim-style navigation layers
- Mac-like shortcuts on Linux