Skip to content

Key Remapper

Kenichi Kamiya edited this page Dec 17, 2024 · 15 revisions

How to add new remap in NixOS

Tested with USB and Bluetooth connected devices.
Especially for USB, using tools like cyme helps several preparation steps.

  1. Connect the device
  2. Kill xremap. Running xremap grabs keyboard events and cannot be checked with evtest
  3. evtest with no arguments runs under interactive device selector
  4. Input before and after keys. And note them
  5. Add entry in extraHwdb as https://github.com/kachick/dotfiles/blob/9e56c304d1c13536e5f3ae5934f9317192947595/nixos/hardware.nix#L9-L20
  6. Rebuild and reboot. Don't use sudo systemd-hwdb update && sudo udevadm trigger except debugging purpose.

Linux

Windows

macOS

Cross-Platform

Clone this wiki locally