2022-05-27 04:01:47 +01:00
|
|
|
# xmodmap
|
|
|
|
|
|
|
|
> Utility for modifying keymaps and pointer button mappings in X.
|
|
|
|
> More information: <https://manned.org/xmodmap>.
|
|
|
|
|
|
|
|
- Swap left-click and right-click on the pointer:
|
|
|
|
|
|
|
|
`xmodmap -e 'pointer = 3 2 1'`
|
|
|
|
|
|
|
|
- Reassign a key on the keyboard to another key:
|
|
|
|
|
2022-11-20 10:23:47 +00:00
|
|
|
`xmodmap -e 'keycode {{keycode}} = {{keyname}}'`
|
2022-05-27 04:01:47 +01:00
|
|
|
|
|
|
|
- Disable a key on the keyboard:
|
|
|
|
|
|
|
|
`xmodmap -e 'keycode {{keycode}} ='`
|
|
|
|
|
|
|
|
- Execute all xmodmap expressions in the specified file:
|
|
|
|
|
|
|
|
`xmodmap {{path/to/file}}`
|