1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-06 12:06:00 +02:00

xmodmap: add page (#8106)

This commit is contained in:
Seth Falco 2022-05-27 05:01:47 +02:00 committed by GitHub
parent e09b810fb1
commit 96b5eed73b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

20
pages/linux/xmodmap.md Normal file
View file

@ -0,0 +1,20 @@
# 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:
`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}}`