Forrest logo
tool overview
On this page you find all important commands for the CLI tool xmodmap. If the command you are looking for is missing please ask our AI.

xmodmap

xmodmap is a command line tool in Linux that enables the modification of keyboard mappings. It stands for X Modifier Map.

It allows users to change the keymaps of their keyboard by remapping keys or modifying their behavior to suit specific preferences or needs.

The tool works with the X Window System, which is a windowing system used on Unix-like operating systems.

Users can utilize xmodmap to redefine the actions of certain keys, create custom key combinations, or swap keys around. This can be particularly beneficial for users who are not satisfied with default keyboard configurations.

The modifications made using xmodmap can be temporary or permanent, depending on user preference. Temporary changes can be removed upon restarting the system, while permanent changes often involve creating a script or adding a configuration file to load the modified keymap at startup.

The xmodmap command utilizes a .Xmodmap configuration file by default, which contains the desired key remappings and settings. Users can edit this file to define their preferred key mappings.

Overall, xmodmap provides users with a powerful utility to customize their keyboard layout and improve their typing experience in Linux systems.

List of commands for xmodmap:

  • xmodmap:tldr:37e15 xmodmap: Execute all xmodmap expressions in the specified file.
    $ xmodmap ${filename}
    try on your machine
    explain this command
  • xmodmap:tldr:48cca xmodmap: Swap left-click and right-click on the pointer.
    $ xmodmap -e 'pointer = 3 2 1'
    try on your machine
    explain this command
  • xmodmap:tldr:b437e xmodmap: Disable a key on the keyboard.
    $ xmodmap -e 'keycode ${keycode} ='
    try on your machine
    explain this command
  • xmodmap:tldr:ffbbc xmodmap: Reassign a key on the keyboard to another key.
    $ xmodmap -e 'keycode ${keycode} = ${keyname}'
    try on your machine
    explain this command
tool overview