I have a laptop without a numeric keypad on which I'm running Ubuntu 12.04, and I very much enjoy playing roguelike games. Such games tend to require a numpad for movement, targeting, &c., as one is able to operate in the eight cardinal directions. To get around the limitation of not having a numpad, I would like to be able to bind a key combination, for example Shift + Left Arrow to another key, in this case 1; unfortunately, my research so far has only turned up how to bind a key combination to a command. I'm sure there's something blaringly obvious that I'm missing, but as for what it is ... Any help would be greatly appreciated!
if you want to do that on windows there is very useful scripting language AutoHotKey which can do alot with scripting interface.
Latest version is v0.90.
Open software center > search for
Press Ctrl+N or from File>Create..>New Phrase. Rename with whatever you like.
Enter keys In right panel(remove text
Then in bottom-right corner there is three
You need to keep AutoKey running or you can add in startup list for command
here is some Sample Scripts If you'd like to do some thing more.
This was pretty much answered in other questions like this one, but the short version is you should be able to do this level of remapping with xmodmap. I have done this sort of thing for mapping key combinations to the multimedia key actions, for example.
Thank your share, I mapping the Ctrl + h, j, k, l to be ←, ↓, ↑, →, now I like my HHKB better.
If you have HHKB, you can also setting under:
Shift + Esc = ~
Ctrl + 0 = Home
Ctrl + 4 = End
Ctrl + b = PgUp
Ctrl + f = PgDn
by the way, I note it at my blog ---- 凍仁的筆記：HHKB Pro 2.