LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 978|回复: 2

xmodmap键盘映射问题

[复制链接]
发表于 2009-12-15 22:55:25 | 显示全部楼层 |阅读模式
大家好,今天想把我的日文键盘的右control键映射成右alt,右键菜单键映射成右control键,执行命令
xmodmap -e ' keycode 117 = Control_R'
xmodmap -e ' keycode 109 = Alt_R'

上面的keycode我用xev看过了,没有问题,
右control键的keycode是:109
右键菜单键的keycode是:117

但是结果就成了(在vi里面试的):
右control键   --> control键
右键菜单键   -->  alt

但是xmodmap -pke结果是:
  1. keycode   8 =
  2. keycode   9 = Escape
  3. keycode  10 = 1 exclam
  4. keycode  11 = 2 quotedbl
  5. keycode  12 = 3 numbersign
  6. keycode  13 = 4 dollar
  7. keycode  14 = 5 percent
  8. keycode  15 = 6 ampersand
  9. keycode  16 = 7 apostrophe
  10. keycode  17 = 8 parenleft
  11. keycode  18 = 9 parenright
  12. keycode  19 = 0 asciitilde
  13. keycode  20 = minus equal
  14. keycode  21 = asciicircum asciitilde
  15. keycode  22 = BackSpace Terminate_Server
  16. keycode  23 = Tab ISO_Left_Tab
  17. keycode  24 = q Q
  18. keycode  25 = w W
  19. keycode  26 = e E
  20. keycode  27 = r R
  21. keycode  28 = t T
  22. keycode  29 = y Y
  23. keycode  30 = u U
  24. keycode  31 = i I
  25. keycode  32 = o O
  26. keycode  33 = p P
  27. keycode  34 = at grave
  28. keycode  35 = bracketleft braceleft
  29. keycode  36 = Return
  30. keycode  37 = Control_L
  31. keycode  38 = a A
  32. keycode  39 = s S
  33. keycode  40 = d D
  34. keycode  41 = f F
  35. keycode  42 = g G
  36. keycode  43 = h H
  37. keycode  44 = j J
  38. keycode  45 = k K
  39. keycode  46 = l L
  40. keycode  47 = semicolon plus
  41. keycode  48 = colon asterisk
  42. keycode  49 = Zenkaku_Hankaku Kanji
  43. keycode  50 = Shift_L
  44. keycode  51 = bracketright braceright
  45. keycode  52 = z Z
  46. keycode  53 = x X
  47. keycode  54 = c C
  48. keycode  55 = v V
  49. keycode  56 = b B
  50. keycode  57 = n N
  51. keycode  58 = m M
  52. keycode  59 = comma less
  53. keycode  60 = period greater
  54. keycode  61 = slash question
  55. keycode  62 = Shift_R
  56. keycode  63 = KP_Multiply XF86_ClearGrab
  57. keycode  64 = Super_L Meta_L
  58. keycode  65 = space
  59. keycode  66 = Eisu_toggle Caps_Lock
  60. keycode  67 = F1 XF86_Switch_VT_1
  61. keycode  68 = F2 XF86_Switch_VT_2
  62. keycode  69 = F3 XF86_Switch_VT_3
  63. keycode  70 = F4 XF86_Switch_VT_4
  64. keycode  71 = F5 XF86_Switch_VT_5
  65. keycode  72 = F6 XF86_Switch_VT_6
  66. keycode  73 = F7 XF86_Switch_VT_7
  67. keycode  74 = F8 XF86_Switch_VT_8
  68. keycode  75 = F9 XF86_Switch_VT_9
  69. keycode  76 = F10 XF86_Switch_VT_10
  70. keycode  77 = Num_Lock Pointer_EnableKeys
  71. keycode  78 = Scroll_Lock
  72. keycode  79 = KP_Home KP_7
  73. keycode  80 = KP_Up KP_8
  74. keycode  81 = KP_Prior KP_9
  75. keycode  82 = KP_Subtract XF86_Prev_VMode
  76. keycode  83 = KP_Left KP_4
  77. keycode  84 = KP_Begin KP_5
  78. keycode  85 = KP_Right KP_6
  79. keycode  86 = KP_Add XF86_Next_VMode
  80. keycode  87 = KP_End KP_1
  81. keycode  88 = KP_Down KP_2
  82. keycode  89 = KP_Next KP_3
  83. keycode  90 = KP_Insert KP_0
  84. keycode  91 = KP_Delete KP_Decimal
  85. keycode  92 =
  86. keycode  93 = Mode_switch
  87. keycode  94 =
  88. keycode  95 = F11 XF86_Switch_VT_11
  89. keycode  96 = F12 XF86_Switch_VT_12
  90. keycode  97 = Home
  91. keycode  98 = Up
  92. keycode  99 = Prior
  93. keycode 100 = Left
  94. keycode 101 =
  95. keycode 102 = Right
  96. keycode 103 = End
  97. keycode 104 = Down
  98. keycode 105 = Next
  99. keycode 106 = Insert
  100. keycode 107 = Delete
  101. keycode 108 = KP_Enter
  102. keycode 109 = Alt_R
  103. keycode 110 = Pause Break
  104. keycode 111 = Print Execute
  105. keycode 112 = KP_Divide XF86_Ungrab
  106. keycode 113 = Alt_R Meta_R
  107. keycode 114 =
  108. keycode 115 = Alt_L Meta_L
  109. keycode 116 = Super_R
  110. keycode 117 = Control_R
  111. keycode 118 =
  112. keycode 119 =
  113. keycode 120 =
  114. keycode 121 =
  115. keycode 122 =
  116. keycode 123 =
  117. keycode 124 = ISO_Level3_Shift
  118. keycode 125 = NoSymbol Alt_L
  119. keycode 126 = KP_Equal
  120. keycode 127 = NoSymbol Super_L
  121. keycode 128 = NoSymbol Hyper_L
  122. keycode 129 = Henkan_Mode Mode_switch
  123. keycode 130 =
  124. keycode 131 = Muhenkan
  125. keycode 132 =
  126. keycode 133 = backslash bar
  127. keycode 134 =
  128. keycode 135 =
  129. keycode 136 =
  130. keycode 137 =
  131. keycode 138 =
  132. keycode 139 =
  133. keycode 140 =
  134. keycode 141 =
  135. keycode 142 =
  136. keycode 143 =
  137. keycode 144 =
  138. keycode 145 =
  139. keycode 146 =
  140. keycode 147 =
  141. keycode 148 =
  142. keycode 149 =
  143. keycode 150 =
  144. keycode 151 =
  145. keycode 152 =
  146. keycode 153 =
  147. keycode 154 =
  148. keycode 155 =
  149. keycode 156 = NoSymbol Meta_L
  150. keycode 157 =
  151. keycode 158 =
  152. keycode 159 =
  153. keycode 160 =
  154. keycode 161 =
  155. keycode 162 =
  156. keycode 163 =
  157. keycode 164 =
  158. keycode 165 =
  159. keycode 166 =
  160. keycode 167 =
  161. keycode 168 =
  162. keycode 169 =
  163. keycode 170 =
  164. keycode 171 =
  165. keycode 172 =
  166. keycode 173 =
  167. keycode 174 =
  168. keycode 175 =
  169. keycode 176 =
  170. keycode 177 =
  171. keycode 178 =
  172. keycode 179 =
  173. keycode 180 =
  174. keycode 181 =
  175. keycode 182 =
  176. keycode 183 =
  177. keycode 184 =
  178. keycode 185 =
  179. keycode 186 =
  180. keycode 187 =
  181. keycode 188 =
  182. keycode 189 =
  183. keycode 190 =
  184. keycode 191 =
  185. keycode 192 =
  186. keycode 193 =
  187. keycode 194 =
  188. keycode 195 =
  189. keycode 196 =
  190. keycode 197 =
  191. keycode 198 =
  192. keycode 199 =
  193. keycode 200 =
  194. keycode 201 =
  195. keycode 202 =
  196. keycode 203 =
  197. keycode 204 =
  198. keycode 205 =
  199. keycode 206 =
  200. keycode 207 =
  201. keycode 208 = Hiragana_Katakana Romaji
  202. keycode 209 = Hiragana_Katakana
  203. keycode 210 = Eisu_toggle
  204. keycode 211 = backslash underscore
  205. keycode 212 =
  206. keycode 213 =
  207. keycode 214 = XF86Display
  208. keycode 215 = XF86KbdLightOnOff
  209. keycode 216 = XF86KbdBrightnessDown
  210. keycode 217 = XF86KbdBrightnessUp
  211. keycode 218 =
  212. keycode 219 =
  213. keycode 220 =
  214. keycode 221 =
  215. keycode 222 =
  216. keycode 223 =
  217. keycode 224 =
  218. keycode 225 =
  219. keycode 226 =
  220. keycode 227 =
  221. keycode 228 =
  222. keycode 229 =
  223. keycode 230 =
  224. keycode 231 =
  225. keycode 232 =
  226. keycode 233 =
  227. keycode 234 =
  228. keycode 235 =
  229. keycode 236 =
  230. keycode 237 =
  231. keycode 238 =
  232. keycode 239 =
  233. keycode 240 =
  234. keycode 241 =
  235. keycode 242 =
  236. keycode 243 =
  237. keycode 244 =
  238. keycode 245 =
  239. keycode 246 =
  240. keycode 247 =
  241. keycode 248 =
  242. keycode 249 =
  243. keycode 250 =
  244. keycode 251 =
  245. keycode 252 =
  246. keycode 253 =
  247. keycode 254 =
  248. keycode 255 =
复制代码

我糊涂了,怎么了这是。。 明明xmodmap显示的是control件怎么就和alt键一样的功能呢?
,谁能帮帮我亚?
 楼主| 发表于 2009-12-17 18:56:33 | 显示全部楼层
哎,没人里我亚?还是大家都不知道怎么回事亚?
回复 支持 反对

使用道具 举报

发表于 2009-12-18 12:58:26 | 显示全部楼层
KDE systemsettings 键盘映射这一块做的很好, gnome 下面应该也有相应的东西吧?代码改来改去不要太累。 setxkbmap 也好啊。只是换一个 control alt 而已,用不着这么兴师动众吧?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表