I spilled the tiniest amount of water on my laptop and now the left arrow key won't respond - can anyone give me a quick runthrough of how to reassign it (i'm using Ubuntu) to another key (probably the right ctrl or another)?
If the tutorial requires me to press the left arrow key (perhaps to get its binding ID or something) I won't be able to do that.
Thanks!
Find the scan code of the the key you want to assign something to (for example this is 1d for the left control - see http://www.win.tue.nl/~aeb/linux/kbd/scancodes-1.html for a list of what these are. You can also use sudo showkeys -s
Use sudo dumpkeys to find the 'keycode' for the key you want to move (left arrow is 105 on my machine for example - may vary depending on machine)
dial in sudo setkeycodes 1d 105 ---> this makes your machine perform 'left arrow' whenever you press the left cntrl key.
showkey --scancodes
&xev
are also useful for finding the codes.... whileevtest
seems to be useful, in particular for USB keyboard events. – Martin Zeitler Jan 27 '18 at 08:18