Assign keycode to keys combination

I have problem with my left cursor key on notebook (Toshiba l10-117) keyboard, I removed this key and checked if there is no dust or something but it didn’t helped, probably i have to buy new keyboard in future.
I’m wondering if it is possible to do something like this as temporary solution: if I use Alt+PageUp key it will work like left cursor key.

Anyone have idea how to assign this kind of shortcut?

Greetings :slight_smile:

On Thu, 13 Jan 2011 09:06:01 +0000, stawek wrote:

> Anyone have idea how to assign this kind of shortcut?

Have a look at the “xmodmap” command - that can be used to remap keys on
the keyboard. I’ve not done it myself (not reassignment, but I have
disabled caps lock, for example, using that command and the man page
talks about swapping the CTRL key and Caps Lock key).


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at

Thanks for reply, great advice, after reading manual changed my mind a little bit and used right control as left cursor key.

xmodmap -e "remove Control = Control_R"
xmodmap -e "keysym Control_R = Left"
xset r 109

xset is used for enable repeating on control key.
I used also xev to discover keycodes behind keys.