From 96b5eed73bf9b1d81336774c238bbf7ecf3ee3a5 Mon Sep 17 00:00:00 2001 From: Seth Falco Date: Fri, 27 May 2022 05:01:47 +0200 Subject: [PATCH] xmodmap: add page (#8106) --- pages/linux/xmodmap.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/linux/xmodmap.md diff --git a/pages/linux/xmodmap.md b/pages/linux/xmodmap.md new file mode 100644 index 0000000000..eb910417ca --- /dev/null +++ b/pages/linux/xmodmap.md @@ -0,0 +1,20 @@ +# xmodmap + +> Utility for modifying keymaps and pointer button mappings in X. +> More information: . + +- 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}}`