One of the most annoying things about the eee 1000 is the location of the right shift key. Its small and very far to the right. If you are a touch typist, this makes typing very difficult. Well I have read some blog posts that discussed remapping the keys, but they all seems to mention Windows and not Linux. Since I have the Linux version of the eee 1000 it was time to do a little research.
Googling around I found this really good article on Linux utilities for remapping keys in XWindows. The article only covers remapping the Caps Lock and Control keys. But, playing around with xmodmap
and xev
I was able to figure things out. So here is the result, two shell scripts. The first scripts swaps the up arrow key with the right shift key. The second resets the keys to their original values.
keyswap
#!/bin/bash
xmodmap -e "keycode 98 = Shift_R"
xmodmap -e "keycode 62 = Up"
xmodmap -e "add shift = Shift_R"
keyreset
#!/bin/bash
xmodmap -e "keycode 98 = Up"
xmodmap -e "keycode 62 = Shift_R"
The scripts seem to do the job. But if you have any suggested improvements please pass them along in the comments.
No comments:
Post a Comment