Linux command
mk_modmap 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Translate a Linux console keymap
mk_modmap [keymap_file]
Save the output
mk_modmap [keymap_file] > [keymap.xmodmap]
Translate with verbose
mk_modmap -v [keymap_file]
Dump the current keymap
dumpkeys | mk_modmap
说明
mk_modmap translates a Linux console keytable file into a file that can be parsed by xmodmap and used within X11. The translated result is written to standard output. It requires the X11 header files to be installed at build time. The tool is part of the xkeycaps package. Modern X.Org versions initialize their keymap from the active Linux keymap, so mk_modmap is rarely needed on contemporary systems.
参数
- -v
- Verbose output during conversion.
FAQ
What is the mk_modmap command used for?
mk_modmap translates a Linux console keytable file into a file that can be parsed by xmodmap and used within X11. The translated result is written to standard output. It requires the X11 header files to be installed at build time. The tool is part of the xkeycaps package. Modern X.Org versions initialize their keymap from the active Linux keymap, so mk_modmap is rarely needed on contemporary systems.
How do I run a basic mk_modmap example?
Run `mk_modmap [keymap_file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -v do in mk_modmap?
Verbose output during conversion.