My Enter key recently broke and I was wondering if I could bind it to a different key in GNOME. Does anyone know how I would go about doing this?
Yes, you can change the xmodmap. First thing to do is find the keycode for the key you want to use as replacement. To do that, open a terminal, then run
Now, if you don't already have a
Then edit the file with your favorite editor. e.g.
Scroll down to the line for the keycode you noted earlier. If the keycode you want to use is 62 for instance, change the line that starts with
Next time you log in, you'll be asked if you want to load that modmap, so do that, and afterwards that key should work as a return key. For making the change in your current session, load the file with: