mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
26 lines
566 B
Plaintext
26 lines
566 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# xmodmap
|
|
|
|
> Utility for modifying keymaps and pointer button mappings in X.
|
|
> More information: <https://manned.org/xmodmap>.
|
|
|
|
- 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}}`
|