转储/保存当前键盘映射/布局?

有没有办法转储当前的键盘映射/键盘布局,所以它可以加载到另一个主机与xmodmap ?

这是在xmodmap手册页。 尝试以下开关:

  -pke This 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. 

redirect到一个文件,Xmodmap可以读取这个文件来设置键盘映射。 这只适用于使用X.如果你在控制台上需要类似的东西,看看loadkeys 。

也看看xkbcomp和setxkbmap 。