-
Open up a new terminal window
-
Enter
sudo nano /usr/share/X11/xkb/symbols/pc
Enter your admin password if asked.
- This will bring up a page where you can edit and change many keybindings for Linux. The keys are on the left and the actions are on the right. Switch as many as you want. When you switch them, be sure there are not duplicates as it may cause an error.
To switch Page Down to End, or <PGDN> | END
For Page Up to Home it is <PGUP> | HOME
Let the old end button now act as PgDn and the old Home button be page up. To do this
<HOME> | Prior
<END> | Next
Note, just replace the text here.
-
Press CTRL+O then enter to save changes.
-
Press CTRL+X to exit
-
Run
setxkbmap us
to apply changes -
Restart your computer and the key mappings should work
This guide is based on the response here:
Now…to disable the middle mouse button!