xmodmap
Utility for modifying keymaps and pointer button mappings in X. More information: <https://manned.org/xmodmap>.
Install
- All systems
-
curl cmd.cat/xmodmap.sh
- Debian
-
apt-get install x11-xserver-utils
- Ubuntu
-
apt-get install x11-xserver-utils
- Arch Linux
-
pacman -S xorg-xmodmap
- Kali Linux
-
apt-get install x11-xserver-utils
- CentOS
-
yum install xorg-x11-server-utils
- Fedora
-
dnf install xorg-x11-server-utils
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install x11-xserver-utils
- Raspbian
-
apt-get install x11-xserver-utils
- Dockerfile
- dockerfile.run/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
© tl;dr; authors and contributors