This is the Google result I was looking for but didn't get. It's just a basic remapping of a handful of keys that may have made sense on an AS400 terminal but are out of whack for today's usage. I've also assigned a few basic commands (copy/paste, etc.) to the extra function keys.
Code: Select all
remapblock
# First, let's get the ESC off of the numpad and somewhere vaguely
# related to where your muscle memory wants it to be.
F13 ESC
# Numpad remapping.
# Close to standard numpad layout. The additional key allows us
# to add backspace to the cluster. I chose the top-right where
# minus typically is, and minus slides down to what is usually the
# top half of plus.
ESC NUM_LOCK
NUM_LOCK PAD_SLASH
SCROLL_LOCK PAD_ASTERIX
EXTRA_SYSRQ BACKSPACE
PAD_ASTERIX PAD_MINUS
PAD_MINUS PAD_PLUS
PAD_PLUS PAD_ENTER
# Angle brackets to shift key. Why? Because tiny left shift
# is the kind of thing we should not accept in advanced society.
EUROPE_2 LSHIFT
# Curly braces to backslash and pipe.
EUROPE_1 BACKSLASH
endblock
macroblock
# Some basic functionality mapped to the extra keys on the left.
# Copy
macro EXTRA_F1
MAKE LCTRL
PRESS C
BREAK LCTRL
endmacro
# Paste
macro EXTRA_F2
MAKE LCTRL
PRESS V
BREAK LCTRL
endmacro
# Undo
macro EXTRA_F3
MAKE LCTRL
PRESS Z
BREAK LCTRL
endmacro
# Redo
macro EXTRA_F4
MAKE LCTRL
PRESS Y
BREAK LCTRL
endmacro
# Save
macro EXTRA_F10
MAKE LCTRL
PRESS S
BREAK LCTRL
endmacro
endblock
Nothing complex, nothing really interesting, just basic functionality that hopefully some other poor bastard will run across one day shortly after sinking into the morass of this hobby.
