Skip to content

Instantly share code, notes, and snippets.

@filipechagas
Created June 29, 2021 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save filipechagas/8df192c1e8930524fac75fe58c4014e7 to your computer and use it in GitHub Desktop.
Save filipechagas/8df192c1e8930524fac75fe58c4014e7 to your computer and use it in GitHub Desktop.
Arch - Map Caps to Esc (press) and Control (press and hold)

pacman -S interception-tools interception-caps2esc

Create /etc/interception/udevmon.d/caps2esc.yaml with the following content:

- JOB: "intercept -g $DEVNODE | caps2esc | uinput -d $DEVNODE"
  DEVICE:
    EVENTS:
      EV_KEY: [KEY_CAPSLOCK, KEY_ESC]

sudo systemctl enable udevmon sudo systemctl start udevmon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment