LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (http://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   Swapping PgUp and Shift Keys in Fedora 14 (http://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/swapping-pgup-and-shift-keys-in-fedora-14-a-894819/)

BarbieQ1 07-31-2011 11:05 PM

Swapping PgUp and Shift Keys in Fedora 14
 
I've finally given up on Asus ever offering an Xathros upgrade and having to patch things together, so I installed Fedora 14 (Gnome) on my 700-series EEE. It is running great (after a surprisingly horrid experience with KDE Fedora 15).

The one thing I haven't figured out is how to swap the PgUp and right Shift keys so that I actually capitalize when I type and don't insert the lowercase letter into the line above. I had this set up with KDE, but it doesn't seem to be so easy in Gnome.

There are two ways to do this as far as I can tell, but I'm a bit stuck on both.

1) The first way, which would probably switch it for all keyboards is to switch the keycodes. I have figured out that the file I want to alter is probably located in:
/usr/share/X11/xkb/keycodes/
I'm guessing that if I swap the numbers for RTSH and PGUP that this would solve it. However, I'm not exactly sure which file within the keycodes I need since my system is using an "unidentified" keyboard. I suspect it will be the 'xfree86', but I am delaying the alteration as I would prefer option 2 below.

2) The second way would be to switch the keys for a given keyboard (US), but not for others. I used two keyboards in my KDE systems. The first was the default with the keys swapped. The second was the keyboard without the swap for the times I use an external keyboard for heavy typing so that the PgUp and Shift keys worked fine.

However, it seems that the right Shift (RTSH) and Page Up (PGUP) keys are not related to the language and are located in other files. (I found RTSH in "Shift", but haven't located PGUP yet.) This would mean it is basically like doing option 1, but with more mess.

So...
If anyone has any suggestions on how I might swap the PgUp and right Shift key for one keyboard (say the USA-US) and not others (say the USA-International or Canada-English), your help would be greatly appreciated!


All times are GMT -5. The time now is 01:49 AM.