commands.sh

xmodmap

linux

Utility for modifying keymaps and pointer button mappings in X.

More info →

Examples (4)

Swap `<LeftClick>` and `<RightCLick>` on the pointer

xmodmap -e 'pointer = 3 2 1'

Reassign a key on the keyboard to another key

xmodmap -e 'keycode keycode = keyname'

Disable a key on the keyboard

xmodmap -e 'keycode keycode ='

Execute all xmodmap expressions in the specified file

xmodmap path/to/file
made by @shridhargupta | data from tldr-pages