They used to be in /usr/lib/X11/XKeysymDB or /usr/share/X11/XKeysymDB, but those have been missing from Ubuntu for a while. I've tried google, but all I get are more references to XKeysymDB or the outputs of different people's xmodmap -pke
. Where is the concise list?
Probably the best up-to-date values for key symbol definitions is to look at the source-code.
Basically its just a list of keysym names with their associated codes.
Two key keyfiles in
/usr/include/X11
:The main definition file:
Vendor specific (i.e. Debian/Ubuntu):
There are a number of other header files in the same folder you can also examine:
Example definition from
/usr/include/X11/keysymdef.h
:Note that if you want to learn the code for a specific key on your keyboard, you can use
xev
. After startingxev
, you can press the key and see the X events printed to the terminal.You can use
xev | grep keysym
to filter the lines for the essential information, you need the second argument in parenthesis.