# 使用 Homebrew, apk, apt, Nix, pacman, zypper 安装 keyd

查看 keyd 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:keyd
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install keyd
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add keyd
```

  证据: Alpine Linux edge package indexes: keyd from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install keyd
```

  证据: Debian stable package indexes: keyd from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#keyd
```

  证据: nixpkgs package indexes: pkgs/by-name/ke/keyd/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S keyd
```

  证据: Arch Linux sync databases: keyd from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install keyd
```

  证据: openSUSE Tumbleweed package metadata: keyd from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:keyd
- **软件包管理器:** Homebrew
- **版本:** 2.6.0
- **来源摘要:** Key remapping daemon for Linux
- **主页:** <https://github.com/rvaiya/keyd>
- **仓库:** <https://github.com/rvaiya/keyd>
- **最后更新:** 2026-06-11T11:49:33Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- keyd (别名)
- keyd-application-mapper (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.6.0
## 项目历史与用法

keyd is a Linux key-remapping daemon that works below the display-server layer using evdev and uinput. It exists because desktop-specific tools such as xmodmap and xcape can be brittle across X11, Wayland, terminal VTs, and multiple keyboards.

### 项目历史

The project, maintained by rvaiya, framed its impetus as a missing Linux-wide remapping solution. Its design goals are speed, a simple config format, consistent modifier behavior, and a small Unix-style daemon with IPC for scripting and application-specific remapping.

The v2 documentation notes that the configuration format went through several iterations after the first release, making the man page the authoritative guide for users migrating from v1. The man page describes keyd as a system-wide daemon supporting layers, one-shot modifiers, macros, and custom layouts that persist across Wayland, X11, and TTY boundaries.

### 采用历史

keyd became popular among Linux users who wanted firmware-like keyboard behavior without flashing QMK or depending on a single desktop session. Distribution packages in Alpine, Debian, Nix, Arch, openSUSE, and Homebrew-style catalogs show adoption beyond source builds.

### 使用方式

The common first configuration maps Caps Lock to Escape when tapped and Control when held, then reloads the daemon with keyd reload. More advanced users define layers, per-keyboard IDs, application mappings, Unicode output, and home-row or one-shot modifiers.

### 为什么软件包爱好者会关心

keyd is interesting to package nerds because it packages a tiny C daemon that changes the physical typing environment for the whole machine. It is also a practical response to the Wayland transition: remapping below the display server avoids the split between X-only and Wayland-only tools.

### 时间线

- 2021: Downstream package history shows early 1.x packaging activity.
- 2022: v2-era documentation told users migrating from v1 to reread the man page after config-format iterations.
- 2024: Distribution bug reports and manuals show keyd being used on modern Linux kernels and Wayland desktops.
- 2026: The project remained active enough for new issues and package-manager submissions around Homebrew and Linux distributions.

### Related projects

- Related tools include xmodmap, xcape, interception-tools, xremap, KMonad, Kanata, and QMK firmware. keyd's distinct niche is system-wide Linux remapping with firmware-like layers but no keyboard flashing.

### 来源

- <https://github.com/rvaiya/keyd>
- <https://github.com/rvaiya/keyd/blob/master/docs/CHANGELOG.md>
- <https://github.com/rvaiya/keyd/blob/master/docs/keyd.scdoc>
- <https://github.com/rvaiya/keyd/releases>
- <https://man.archlinux.org/man/extra/keyd/keyd.1.en>


## 安全说明

没有找到 keyd 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Linux: /etc/keyd/default.conf, ~/.config/keyd/app.conf
## 其他软件包管理器记录

- Debian apt - keyd - 2.5.0-4: normalized package name match | Debian stable package indexes: keyd from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | keyboard key remapping daemon | https://github.com/rvaiya/keyd
- Debian apt - keyd-application-mapper - 2.5.0-4: normalized package name match | Debian stable package indexes: keyd-application-mapper from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | keyboard key remapping daemon - application-specific remapper | https://github.com/rvaiya/keyd
- Nix - keyd: normalized package name match | nixpkgs package indexes: pkgs/by-name/ke/keyd/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - keyd - 2.6.0-r1: normalized package name match | Alpine Linux edge package indexes: keyd from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A key remapping daemon for Linux | https://github.com/rvaiya/keyd
- apk - keyd-application-mapper - 2.6.0-r1: normalized package name match | Alpine Linux edge package indexes: keyd-application-mapper from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A key remapping daemon for Linux - application specific remapping | https://github.com/rvaiya/keyd
- apk - keyd-doc - 2.6.0-r1: normalized package name match | Alpine Linux edge package indexes: keyd-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A key remapping daemon for Linux (documentation) | https://github.com/rvaiya/keyd
- apk - keyd-openrc - 2.6.0-r1: normalized package name match | Alpine Linux edge package indexes: keyd-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A key remapping daemon for Linux (OpenRC init scripts) | https://github.com/rvaiya/keyd
- apk - keyd-systemd - 2.6.0-r1: normalized package name match | Alpine Linux edge package indexes: keyd-systemd from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A key remapping daemon for Linux (systemd files) | https://github.com/rvaiya/keyd
- pacman - keyd - 2.6.0-5: normalized package name match | Arch Linux sync databases: keyd from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A key remapping daemon for linux | https://github.com/rvaiya/keyd
- zypper - keyd - 2.6.0-2.1: normalized package name match | openSUSE Tumbleweed package metadata: keyd from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A key remapping daemon for linux | https://github.com/rvaiya/keyd
- zypper - keyd-application-mapper - 2.6.0-2.1: normalized package name match | openSUSE Tumbleweed package metadata: keyd-application-mapper from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Application mapper for keyd | https://github.com/rvaiya/keyd


## Combined YAML source

View the package source record on GitHub. [combined/keyd.yml](https://github.com/mxcl/pkgdb/blob/main/combined/keyd.yml)


## 来源

- pkg.so package database
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
