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