OS Manuals

/usr/bin/xmodmap

Utility for modifying keymaps and pointer button mappings in X

From xmodmap 1.0.12-r1 (os), captured 2026-11-05 by running xmodmap --help (exit 0). permalink

usage:  /usr/bin/xmodmap [-options ...] [filename]

where options include:
    -display host:dpy            X server to use
    -verbose, -quiet             turn logging on or off
    -n                           don't execute changes, just show like make
    -e expression                execute string
    -pm                          print modifier map
    -pk                          print keymap table
    -pke                         print keymap table as expressions
    -pp                          print pointer map
    -help                        print this usage message
    -grammar                     print out short help on allowable input
    -version                     print program version
    -                            read standard input
Options (11)
OptionDescriptionSource
-display host:dpyThis option specifies the host and display to use.help + man
-verbose, -quietThis option indicates that xmodmap should print logging information as it parses its input.help + man + man
-nThis option indicates that xmodmap should not change the mappings, but should display what it would do, like make(1) does when given this option.help + man
-e expressionThis option specifies an expression to be executed.help + man
-pmThis option indicates that the current modifier map should be printed on the standard output.help + man
-pkThis option indicates that the current keymap table should be printed on the standard output.help + man
-pkeThis option indicates that the current keymap table should be printed on the standard output in the form of expressions that can be fed back to xmodmap.help + man
-ppThis option indicates that the current pointer map should be printed on the standard output.help + man
-helpThis option indicates that a brief description of the command line arguments should be printed on the standard error channel.help + man
-grammarThis option indicates that a help message describing the expression grammar used in files and with -e expressions should be printed on the standard error.help + man
-versionThis option indicates that xmodmap should print its version information and exit.help + man
Examples (7) from the manual page, untested

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.