Graphics Administration Guide (April 2009)

number
Specifies a list of button numbers to map the mouse keys to. The order of the numbers refers to
the original button mapping.
pp
Print the current pointer mapping.
For example, to reverse the positions of buttons 1 and 3 for left-handed mapping:
xmodmap -e “pointer = 3 2 1" (2-button mouse)
modifying modifier key bindings with xmodmap
To change the meaning of a particular key for a particular X11 session, or to initialize the X Server
with a completely different set of key mappings, use the xmodmap client.
The syntax for xmodmap is as follows: xmodmap <options> [<filename>] where <options> are:
-display <host>:<display>
Specifies the host, display number, and screen to use.
-help
Displays a brief description of xmodmap options.
-grammar
Displays a brief description of the syntax for modification expressions.
-verbose
Prints log information as xmodmap executes.
-quiet
Turns off verbose logging. This is the default.
-n
Lists changes to key mappings without actually making those changes.
-e <expression>
Specifies a remapping expression to be executed.
-pm, -p
Prints the current modifier map to the standard output. This is the default.
-pk
Prints the current keymap table to the standard output.
-pp
Print the current pointer map to the standard output.
- (dash)
Specifies that the standard input should be used for the input file.
<filename>
Specifies a particular key mapping file to be used.
specifying key remapping expressions
Whether you remap a single key “on the fly” with a command-line entry or install an entire new
keyboard map file, you must use valid expressions in your specification, one expression for each
remapping.
A valid expression is any one of the following:
40 X Server configuration details