I was wondering if there is a simple way to edit the keymap in suse 11.0.
I am using the asus eee pc and the right shift is too far to the right. I need to switch the up arrow key and the right shift maps. Can someone assist me in doing this? Thanks.
Hi. You could use the cli tool xev to see the keycodes. Then you can reassign the keys with xmodmap. To enable that browserback key on my thinkpad it looks like this: xmodmap -e ‘keycode 234 = Prior’. These settings will be lost when you logout. To make them persistent put the commands in a script that runs automatically on login or boot, as you wish. Good luck!
Thanks for the reply. I do, however, need a little more guidance than that at this point. How do I run this tool, or do I need to install it?
Also, how would I write the script? I know that, by going into the defkeymap.map file, I can see that the keymap for the shift key is 54 and the up key is 103. I need to change those keys around, how might I accomplish this writing a script file and where would I place it?
Here’s what the terminal is throwing back at me after I have changed the keys:
KeyRelease event, serial 36, synthetic NO, window 0x3c00001,
root 0x69, subw 0x0, time 1487034, (380,-17), root:(297,336),
state 0x0, keycode 98 (keysym 0xffe2, Shift_R), same_screen YES,
XKeysymToKeycode returns keycode: 62
XLookupString gives 0 bytes:
XFilterEvent returns: False
It’s changing the key back to its original keycode… any suggestions?
I changed them both using the xmodmap command:
KeyRelease event, serial 36, synthetic NO, window 0x3c00001,
root 0x69, subw 0x0, time 1687745, (82,98), root:(85,146),
state 0x0, keycode 98 (keysym 0xffe2, Shift_R), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 36, synthetic NO, window 0x3c00001,
root 0x69, subw 0x0, time 1693557, (82,98), root:(85,146),
state 0x0, keycode 62 (keysym 0xff52, Up), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
The shift key is behaving like the up key, but the up key is not behaving like the shift key. Let me know if anyone has any good suggestions.