XMODMAP(1) — Unix Programmer’s Manual
NAME
xmodmap, xprkbd - X Window System keyboard modifier utilities
SYNOPSIS
xmodmap [ -S ] [ -s ] [ -L ] [ -l ] [ -C ] [ -c ] [ -1 ] [ -2 ] [ -3 ] [ -4 ] [ -5 ] [ +S n ] [ +s n ] [ +L n ] [ +l n ] [ +C n ] [ +c n ] [ +1 n ] [ +2 n ] [ +3 n ] [ +4 n ] [ +5 n ] [ host:display ] xprkbd
DESCRIPTION
Xmodmap is a utility for displaying and altering the X keyboard modifier map on the specified display and host. If no display is specified, the value of the DISPLAY environment variable is used.
With no arguments, xmodmap displays the current map.
Xprkbd prints on the standard output a table of the keycodes, the keysym code, and the keynames for the keyboard on the appropriate X server.
OPTIONS
-S -s Disable all current keys for the Shift modifier set.
+S +s Add the keyname n to the Shift modifier set.
-L -l Disable all current keys for the Lock modifier set.
+L +l Add the keyname n to the Lock modifier set.
-C Disable all current keys for the Control modifier set.
-<digit>
Disable all current keys for the Mod<digit> modifier set.
+<digit>
Add the keyname n to the Mod<digit> modifier set.
EXAMPLES
To add keyname Shift_L to the Shift set: xmodmap +s Shift_L
To replace the Control set by keynames F1 & F3: xmodmap -C +c F1 -c F3
ENVIRONMENT
DISPLAY
To get default host and display number.
SEE ALSO
BUGS
Will not allow you to increase the maximum number of keys per modifier.
AUTHOR
David Rosenthal, Sun Microsystems Copyright © 1987 Sun Microsystems, Inc.
X Version 11 — 6 July 1987