Skip to content

An Interception Tools plugin that swaps arbitrary pairs of keys.

License

Notifications You must be signed in to change notification settings

amfranz/swap-keys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swap-keys

swap-keys is an Interception Tools plugin that swaps arbitrary pairs of keys.

For more information about the Interception Tools, check the project's website.

Build instructions

mkdir build
cd build
cmake ..
make

Usage

Specify any number of pairs of named keys to swap as command line arguments.

The list of key names can be found in the libevdev source code, look for constants with the prefix KEY_:

A typical use case is to swap WIN and ALT keys. A suggested udevmon job configuration for this is:

- JOB: "intercept -g $DEVNODE | swap-keys KEY_LEFTALT KEY_LEFTMETA KEY_RIGHTALT KEY_RIGHTMETA | uinput -d $DEVNODE"
  DEVICE:
    NAME: Apple Inc. Apple Keyboard
    EVENTS:
      EV_KEY: [KEY_LEFTALT, KEY_RIGHTALT, KEY_LEFTMETA, KEY_RIGHTMETA]

License

License: MIT

About

An Interception Tools plugin that swaps arbitrary pairs of keys.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors