... h3. Intro I just bought a small portable keyboard that unfortunately has only one control key. On the right side the contol position is taken by a key with the symbols \ and |. I want to map this key to be the right control key. Here is how I did it. This is tested with Ubuntu 8.04 aka "Hardy Heron". h3. Use xev to find keycode The xev utility (X Event Tester) writes information of the key pressed to stdout. In my case it displays: {noformat} KeyRelease event, serial 31, synthetic NO, window 0x2a00001, root 0x87, subw 0x0, time 14383001, (88,-7), root:(1424,253), state 0x0, keycode 94 (keysym 0x3c, less), same_screen YES, XLookupString gives 1 bytes: (3c) "<" XFilterEvent returns: False {noformat} So the keycode to be mapped is 94. h3. Execute xmodmap commands Key mappings can be modified with the {{xmodmap}} utility. {noformat}
|