# How to Switch the Page Down and End key in Ubuntu Linux XFCE

**URL:** <https://forum.codeselfstudy.com/t/how-to-switch-the-page-down-and-end-key-in-ubuntu-linux-xfce/2306>\
**Category:** Tutorials\
**Created:** [May 10, 2020, 6:18am UTC](https://forum.codeselfstudy.com/t/how-to-switch-the-page-down-and-end-key-in-ubuntu-linux-xfce/2306 "2020-05-10T06:18:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![PaulH](https://forum.codeselfstudy.com/letter_avatar_proxy/v4/letter/p/e495f1/32.png) [@PaulH](https://forum.codeselfstudy.com/u/PaulH)\
**Post date:** [May 10, 2020, 6:18am UTC](https://forum.codeselfstudy.com/t/how-to-switch-the-page-down-and-end-key-in-ubuntu-linux-xfce/2306/1 "2020-05-10T06:18:20Z")

</div>

1. Open up a new terminal window

2. 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.

1. Press CTRL+O then enter to save changes.

2. Press CTRL+X to exit

3. Run `setxkbmap us` to apply changes

4. Restart your computer and the key mappings should work

This guide is based on the response here:

> <https://askubuntu.com/questions/1090646/how-to-remap-keys-in-ubuntu-18-04-gnome-shell>

Now…to disable the middle mouse button!

---

<div class="post-metadata">

**Author:** ![Josh](https://forum.codeselfstudy.com/user_avatar/forum.codeselfstudy.com/josh/32/4_2.png) [@Josh](https://forum.codeselfstudy.com/u/Josh)\
**Post date:** [May 10, 2020, 9:34pm UTC](https://forum.codeselfstudy.com/t/how-to-switch-the-page-down-and-end-key-in-ubuntu-linux-xfce/2306/2 "2020-05-10T21:34:51Z")

</div>

I don’t know if `gnome-tweak-tool` will work with XFCE, but if GNOME features are still running somewhere (Ubuntu’s default), it might. You could try installing that and seeing if its feature to disable paste on middle-click works. If not, you could uninstall it.

---

<div class="post-metadata">

**Author:** ![PaulH](https://forum.codeselfstudy.com/letter_avatar_proxy/v4/letter/p/e495f1/32.png) [@PaulH](https://forum.codeselfstudy.com/u/PaulH)\
**Post date:** [May 10, 2020, 9:49pm UTC](https://forum.codeselfstudy.com/t/how-to-switch-the-page-down-and-end-key-in-ubuntu-linux-xfce/2306/3 "2020-05-10T21:49:33Z")

</div>

Yeah, I tried it, but it didn’t work either. I may see if I can disable it in the bios. For now, I am just learning to really far left click. 😉

---

<div class="post-metadata">

**Author:** ![Josh](https://forum.codeselfstudy.com/user_avatar/forum.codeselfstudy.com/josh/32/4_2.png) [@Josh](https://forum.codeselfstudy.com/u/Josh)\
**Post date:** [May 10, 2020, 9:52pm UTC](https://forum.codeselfstudy.com/t/how-to-switch-the-page-down-and-end-key-in-ubuntu-linux-xfce/2306/4 "2020-05-10T21:52:19Z")

</div>

Have you tried [this idea](https://askubuntu.com/a/778347)?

---

<div class="post-metadata">

**Author:** ![PaulH](https://forum.codeselfstudy.com/letter_avatar_proxy/v4/letter/p/e495f1/32.png) [@PaulH](https://forum.codeselfstudy.com/u/PaulH)\
**Post date:** [May 10, 2020, 9:54pm UTC](https://forum.codeselfstudy.com/t/how-to-switch-the-page-down-and-end-key-in-ubuntu-linux-xfce/2306/5 "2020-05-10T21:54:57Z")

</div>

I will try it on my next Linux mod session. Thanks! 🙂
