A look at rvaiya/keyd: 6.1k stars on GitHub, written primarily in C, tracked under the Backend category. A key remapping daemon for linux.
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
Linux lacks a good key remapping solution. In order to achieve satisfactory
results a medley of tools need to be employed (e.g xcape, xmodmap) with the end
result often being tethered to a specified environment (X11). keyd attempts to
solve this problem by providing a flexible system wide daemon which remaps keys
using kernel level input primitives (evdev, uinput).
Note on v2
The config format has undergone several iterations since the first
release. For those migrating their configs from v1 it is best
to reread the man page (man keyd).
See also: changelog.
Goals
Speed (a hand tuned input loop written in C that takes <<1ms)
Simplicity (a config format that is intuitive)
Consistency (modifiers that play nicely with layers by default)
Modularity (a UNIXy core extensible through the use of an IPC mechanism)
Features
keyd has several unique features many of which are traditionally only
found in custom keyboard firmware like QMK
as well as some which are unique to keyd.
Some of the more interesting ones include:
Layers (with support for hybrid modifiers).
Key overloading (different behaviour on tap/hold).
Keyboard specific configuration.
Instantaneous remapping (no more flashing :)).
A client-server model that facilitates scripting and display server agnostic application remapping. (Currently ships with support for X, sway, and gnome (wayland)).
System wide config (works in a VT).
First class support for modifier overloading.
Unicode support.
keyd is for people who:
Would like to experiment with custom layers (i.e custom shift keys)
and oneshot modifiers.
Want to have multiple keyboards with different layouts on the same machine.
Want to be able to remap C-1 without breaking modifier semantics.
Want a keyboard config format which is easy to grok.
Like tiny daemons that adhere to the Unix philosophy.
Want to put the control and escape keys where God intended.
Wish to be able to switch to a VT to debug something without breaking their keymap.
What keyd isn't:
A tool for programming individual key up/down events.
Dependencies
Your favourite C compiler
Linux kernel headers (already present on most systems)
Optional
python (for application specific remapping)
python-xlib (only for X support)
dbus-python (only for KDE support)
Installation
Note: master serves as the development branch, things may occasionally break
between releases. Releases are tagged, and should be considered stable.
From Source
git clone https://github.com/rvaiya/keyd
cd keyd
make && sudo make install
sudo systemctl enable --now keyd
Quickstart
Install and start keyd (e.g sudo systemctl enable keyd --now)
Put the following in /etc/keyd/default.conf:
[ids]
*
[main]
# Maps capslock to escape when pressed and control when held.
capslock = overload(control, esc)
# Remaps the escape key to capslock
esc = capslock
Key names can be obtained by using the keyd monitor command. Note that while keyd is running, the output of this
command will correspond to keyd's output. The original input events can be seen by first stopping keyd and then
running the command. See the man page for more details.
Run sudo keyd reload to reload the config set.
See the man page (man keyd) for a more comprehensive description.
Config errors will appear in the log output and can be accessed in the usual
way using your system's service manager (e.g sudo journalctl -eu keyd).
Note: It is possible to render your machine unusable with a bad config file.
Should you find yourself in this position, the special key sequence
backspace+escape+enter should cause keyd to terminate.
Some mice (e.g the Logitech MX Master) are capable of emitting keys and
are consequently matched by the wildcard id. It may be necessary to
explicitly blacklist these.
You will probably want to put keyd-application-mapper -d somewhere in your
display server initialization logic (e.g ~/.xinitrc) unless you are running Gnome.
See the man page for more details.
SBC support
Experimental support for single board computers (SBCs) via usb-gadget
has been added courtesy of Giorgi Chavchanidze.
See usb-gadget.md for details.
Packages
Third-party packages exist for some distributions. If you wish to add
yours to the list please file a PR. These are kindly maintained by community
members, no personal responsibility is taken for them.
Alpine Linux
keyd package maintained by @jirutka.
Arch
Arch Linux package maintained by Arch packagers.
Debian
A keyd package is available in Debian 13 ("trixie") and later. To install:
A keyd package is available in Ubuntu 25.04 ("plucky") and later. To install:
sudo apt install keyd
In addition, the latest Debian package backported to various Ubuntu releases can
be found in the ppa:keyd-team/ppa
archive.
Void Linux
xbps package maintained by @Barbaross.
Easy install with sudo xbps-install -Su keyd.
Example 1
[ids]
*
[main]
leftshift = oneshot(shift)
capslock = overload(symbols, esc)
[symbols]
d = ~
f = /
...
Example 2
This overrides specific alt combinations macOS users might
be more familiar with, while keeping the rest intact.
[ids]
*
[alt]
x = C-x
c = C-c
v = C-v
a = C-a
f = C-f
r = C-r
z = C-z
Recommended config
Many users will probably not be interested in taking full advantage of keyd.
For those who seek simple quality of life improvements I can recommend the
following config:
This overloads the capslock key to function as both escape (when tapped) and
control (when held) and remaps all modifiers to 'oneshot' keys. Thus to produce
the letter A you can now simply tap shift and then a instead of having to hold
it. Finally it remaps insert to S-insert (paste on X11).
FAQS
Why is my trackpad is interfering with input after enabling keyd?
libinput, a higher level input component used by most wayland and X11 setups,
includes a feature called 'disable-while-typing' that disables the trackpad
when typing.
In order to achieve this, it needs to distinguish between internal and external
keyboards, which it does by hard coding a rules for specific hardware
('quirks'). Since keyd creates a virtual device which subsumes both external
and integrated keyboards, you will need to instruct libinput to regard the keyd
virtual device as internal.
This can be achieved by adding the following to /etc/libinput/local-overrides.quirks (which may need to be created):
Credit to @mark-herbert42 and @canadaduane for the original solution.
What about xmodmap/setxkbmap/*?
xmodmap and friends are display server level tools with limited functionality.
keyd is a system level solution which implements advanced features like
layering and oneshot
modifiers. While some X tools offer similar functionality I am not aware of
anything that is as flexible as keyd.
What about kmonad?
keyd was written several years ago to allow me to easily experiment with
different layouts on my growing keyboard collection. At the time kmonad did not
exist and custom keyboard firmware like
QMK (which inspired keyd) was the only
way to get comparable features. I became aware of kmonad after having published
keyd. While kmonad is a fine project with similar goals, it takes a different
approach and has a different design philosophy.
Notably keyd was written entirely in C with performance and simplicitly in
mind and will likely never be as configurable as kmonad (which is extensible
in Haskell). Having said that, it supplies (in the author's opinion) the
most valuable features in less than 2000 lines of C while providing
a simple language agnostic config format.
Why doesn't keyd implement feature X?
If you feel something is missing or find a bug you are welcome to file an issue
on github. keyd has a minimalist (but sane) design philosophy which
intentionally omits certain features (e.g execing arbitrary executables
as root). Things which already exist in custom keyboard firmware like QMK are
good candidates for inclusion.
No homepage URL was recorded for rvaiya/keyd in TopGit's last sync. The README tab above frequently contains screenshots and demo links, or check the repository description on GitHub.
Is rvaiya/keyd open source?
Yes — rvaiya/keyd ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/rvaiya/keyd.
What else is in the Backend space?
rvaiya/keyd is tracked by TopGit under the Backend category, alongside 9 GitHub-tagged topics. Trending and Topics pages list peer repositories of comparable stars and language.
What is rvaiya/keyd?
rvaiya/keyd (rvaiya/keyd) is a C project on GitHub. From the project's own README: A key remapping daemon for linux.
What license does rvaiya/keyd use?
rvaiya/keyd is released under the MIT license. Always verify the LICENSE file directly on GitHub for the authoritative terms — license strings can be edited out of sync with a project's actual stance.
Where do I read more about rvaiya/keyd?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/rvaiya/keyd is the definitive source.
Why is rvaiya/keyd categorized under Backend?
TopGit places rvaiya/keyd in the Backend category based on its GitHub topics and description (tagged: "c", "keyboard", "keyboard-layout"). Categories are assigned from real repository metadata, not editorial guesswork.
Read full README in the tab above.
Curious whether keyd is right for you?
Let ChatGPT, Claude, or Perplexity look into it — click below and see what AI actually says about keyd.