xmodmap Command Examples

Utility for modifying keymaps and pointer button mappings in X. More information: https://manned.org/xmodmap.

xmodmap -e 'pointer = 3 2 1'

xmodmap -e 'keycode {{keycode}} = {{keyname}}'

xmodmap -e 'keycode {{keycode}} ='

xmodmap {{path/to/file}}