LinuxCommandLibrary

keyd

key remapping daemon that operates at the kernel level using evdev

TLDR

Start and enable the keyd service

$ systemctl enable keyd --now
copy
Display keypress information (monitor mode)
$ sudo keyd -m
copy
Reload configuration files
$ sudo keyd reload
copy
List all valid key names
$ keyd list-keys
copy
Check configuration files for errors
$ keyd check
copy
Create a temporary binding
$ sudo keyd bind "[pressed_key] = [output_key]"
copy

SYNOPSIS

keyd [options] [command]

DESCRIPTION

keyd is a key remapping daemon that operates at the kernel level using evdev. It allows remapping keys system-wide, independent of the display server (works with X11, Wayland, and virtual consoles).
Configuration files in /etc/keyd define key mappings, layers, and macros. The daemon intercepts input events and transforms them according to the configuration before passing them to applications.

PARAMETERS

-m, monitor

Display keypress information in real-time
reload
Reset bindings and reload configuration from /etc/keyd
list-keys
Display all valid key names
check
Validate configuration files for syntax errors
bind BINDING
Create a temporary key binding

CAVEATS

Requires root privileges for most operations. Configuration changes require reload. Works at a lower level than X11 keymaps, so remappings apply everywhere.

HISTORY

keyd was developed as a modern, simple key remapping solution that works universally across display servers. It provides functionality similar to tools like xmodmap but operates at the kernel input level.

SEE ALSO

xmodmap(1), setxkbmap(1), evtest(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community