DUMPKEYS(1)
๐ DUMPKEYS(1) โ the keyboard translation table dump, bestie ๐
okay so welcome to DUMPKEYS(1) from the General Commands Manual. This is the manual page for dumpkeys, and it's giving "let me show you exactly what your keyboard driver is thinking" energy. ๐
โจ NAME โจ
dumpkeys โ dump keyboard translation tables ๐
๐ฆ SYNOPSIS ๐ฆ
dumpkeys [OPTIONS]
๐ DESCRIPTION ๐
dumpkeys writes to standard output the current contents of the keyboard driver's translation tables, in the format specified by keymaps(5). No cap. โจ
With the various options, you can control the format of the output, and you can also get other information from the kernel and from the programs dumpkeys(1) and loadkeys(1). It's giving very "peek behind the curtain" of your keyboard. ๐ซถ
๐ OPTIONS ๐
-h,--helpโ prints the program's version number and a short usage message to the program's standard error output, then exits. ๐ซถ-i,--short-infoโ prints some characteristics of the kernel's keyboard driver. The items shown are:- Keycode range supported by the kernel โ tells you what values can be used after the
keycodekeyword in keytable files. Seekeymaps(5)for more information and the syntax of these files. - Number of actions bindable to a key โ tells you how many different actions a single key can output using various modifier keys. If the value is 16, for example, you can define up to 16 different actions to a key combined with modifiers. When the value is 16, the kernel probably knows about four modifier keys, which you can press in different combinations with the key to access all the bound actions.
- Ranges of action codes supported by the kernel โ contains a list of action code ranges in hexadecimal notation. These are the values that can be used in the right hand side of a key definition, ie. the
vv's in a line
- Keycode range supported by the kernel โ tells you what values can be used after the
keycode xx = vv vv vv vv
(see keymaps(5) for more information about the format of key definition lines). dumpkeys(1) and loadkeys(1) support a symbolic notation, which is preferable to the numeric one, as the action codes may vary from kernel to kernel while the symbolic names usually remain the same. However, the list of action code ranges can be used to determine, if the kernel actually supports all the symbols loadkeys(1) knows, or are there maybe some actions supported by the kernel that have no symbolic name in your loadkeys(1) program. To see this, you compare the range list with the action symbol list, see option --long-info below.
- Number of function keys supported by kernel โ tells you the number of action codes that can be used to output strings of characters. These action codes are traditionally bound to the various function and editing keys of the keyboard and are defined to send standard escape sequences. However, you can redefine these to send common command lines, email addresses or whatever you like. Especially if the number of this item is greater than the number of function and editing keys in your keyboard, you may have some "spare" action codes that you can bind to AltGr-letter combinations, for example, to send some useful strings. See
loadkeys(1)for more details. - Function strings โ you can see your current function key definitions with the command
dumpkeys --funcs-only
-l,-s,--long-infoโ instructsdumpkeysto print a long information listing. The output is the same as with--short-info, appended with the list of action symbols supported byloadkeys(1)anddumpkeys(1), along with the symbols' numeric values. ๐ฅ-n,--numericโ causesdumpkeysto by-pass the conversion of action code values to symbolic notation and to print them in hexadecimal format instead. โจ-f,--full-tableโ makesdumpkeysskip all the short-hand heuristics (seekeymaps(5)) and output the key bindings in the canonical form. First a keymaps line describing the currently defined modifier combinations is printed. Then for each key a row with a column for each modifier combination is printed. For example, if the current keymap in use uses seven modifiers, every row will have seven action code columns. This format can be useful for example to programs that post-process the output ofdumpkeys.-Sshape,--shape=shapeโ available shapes:2default output.4one line for each keycode.8one line for each (modifier,keycode) pair.16one line for each keycode until 1st hole.
-1,--separate-linesโ forcesdumpkeysto write one line per (modifier,keycode) pair. It prefixes the wordplainfor plain keycodes. ๐-t,--funcs-onlyโ when this option is given,dumpkeysprints only the function key string definitions. Normallydumpkeysprints both the key bindings and the string definitions.-k,--keys-onlyโ when this option is given,dumpkeysprints only the key bindings. Normallydumpkeysprints both the key bindings and the string definitions.-d,--compose-onlyโ when this option is given,dumpkeysprints only the compose key combinations. This option is available only if your kernel has compose key support. ๐-ccharset,--charset=charsetโ instructsdumpkeysto interpret character code values according to the specified character set. This affects only the translation of character code values to symbolic names. Valid values for charset currently areiso-8859-X, Where X is a digit in1-9. If no charset is specified,iso-8859-1is used as a default. This option produces an output linecharset "iso-8859-X", tellingloadkeyshow to interpret the keymap. (For example,"division"is0xf7iniso-8859-1but0xbainiso-8859-8.) ๐ฆ-Cdev,--console=devโ the affected console device can be specified using the-C(or--console) option. This option supports exactly one device name. ๐ธ-v,--verboseโ turn on verbose output.-V,--versionโ prints version number and exits. ๐
๐ FILES ๐
/usr/share/kbd/keymapsโ the recommended directory for keytable files. ๐๏ธ
๐ SEE ALSO ๐
okay that's the whole vibe, bestie. signing off with kbd, the date 1 Sep 1993, and DUMPKEYS(1) โ periodt ๐๐ ๐ฆ
๐ฆ where this page comes from
- arch rolling: kbd 2.10.0-1 ยท GPL-2.0-or-later
- opensuse-leap 16.0: kbd 2.7.1-160000.3.1 ยท GPL-2.0-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: kbd 2.7.1-160000.3.1 ยท GPL-2.0-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: kbd 2.7.1-160000.3.1 ยท GPL-2.0-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: kbd 2.7.1-160000.3.1 ยท GPL-2.0-or-later AND GPL-3.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms