Keyboard Shortcuts - pierregermain/MyTux GitHub Wiki

Swapping keys

#Get you key numbers
# In my case Insert is Keycode 90. 
# In my case Command is Keycode 133
xev
# Now get key name
# In my case Command is Super_L
xmodmap -pk
# And now swap
# In this case we assing to my Insert key the command key
xmodmap -e "keycode 90 = Super_L"