Skip to content

Instantly share code, notes, and snippets.

@IlanFrumer
Last active April 9, 2023 14:11
Show Gist options
  • Save IlanFrumer/49f0051ae57f1dcac29b2ee1cad1dbf9 to your computer and use it in GitHub Desktop.
Save IlanFrumer/49f0051ae57f1dcac29b2ee1cad1dbf9 to your computer and use it in GitHub Desktop.
interception-tools arch
# Install packages
sudo pacman -S interception-tools interception-caps2esc --noconfirm
# Enabled udevmon service
sudo systemctl enable --now udevmon
# Restart when udevmon.yaml changes
sudo systemctl restart udevmon.service
# /etc/interception/udevmon.yaml
- JOB: intercept -g $DEVNODE | caps2esc | uinput -d $DEVNODE
DEVICE:
EVENTS:
EV_KEY: [KEY_CAPSLOCK, KEY_ESC]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment