LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-22-2005, 02:49 AM   #1
alcibiades
LQ Newbie
 
Registered: Nov 2004
Posts: 8

Rep: Reputation: 0
Post swapping " and @ keys on mac keyboard


Hi,

I am using an old mac usb keyboard on Suse. Everything works fine, except that the " and @ keys are swapped. I have been trying to find out how to change them, and have a general idea of what to do, but not how precisely to go about it. This is what I think you have to do, and what I don't know is also indicated.

1) Find out what the " and the @ key is sending. [do you use xev for this? if so, what am I looking for?]

2) Use xkbdoptions to swap them. I think you do this by editing etc/X11/xorg, going down to the relevant section, and then putting something in - but what? The examples I've found tell you how to swap control and caps lock, but they don't tell me what the two keys I want to swap are called, and I can't find a syntax guide for xkbdoptions.

Finally, is there really, really no simple point and click tool that will do this?

Take care

Al
 
Old 04-22-2005, 03:46 AM   #2
hairymnstr
LQ Newbie
 
Registered: Apr 2005
Location: Bath University
Distribution: Ubuntu (Desktop), Debian (Server)
Posts: 10

Rep: Reputation: 0
" and @ keys are swapped on American keyboards I think, so try setting your keyboard language to English (UK) or English (US) depending on which one you aren't using now.

If not xev is the command you need to use, to findout the keycode - look for the keycode keyword in the jumble of text that xev outputs (remeber it will give two blocks of text for each key you press - one for the press and one for the release.

I don't know about editing the config files but lineak (linux easy access keyboard) tool might help, it should be one of the included packages with SUSE.
 
Old 04-22-2005, 01:57 PM   #3
alcibiades
LQ Newbie
 
Registered: Nov 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Yes, its true that you can go to a US keyboard, but the problem then is, you lose the sign, which is a bit irritating. Thanks for the lineak reference, I didn't know about it. Will try right away!

Al
 
Old 04-23-2005, 08:03 AM   #4
alcibiades
LQ Newbie
 
Registered: Nov 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Well, I know exactly what must be done, and after several hours work have no idea how to do it.

I ran xev, and discovered that the two keys I want to swap are

keycode 11
keysym 0x22, quotedbl

and

keycode 48
keysym 0x40, at

So, in accordance with the xmodmap manual exanples I became root and typed in

xmodmap -e "keysym quotedbl = at"

the only result of this was that the " key now vanished. I got it back by using the X configurer in Suse.

Thinking maybe I had misunderstood, I next omitted the spaces each side of the equals sign in the above command, but that aborted.

What we need is for someone to write a little interactive programme that goes
-- hit the first key you wish to swap
-- now hit the second key you wish to swap
-- you are going to swap __ and ___, are you sure? y/n
-- Done!

I am certain there must be people for whom this would take an afternoon. Maybe 10 minutes? Me, it will probably take a month, but I'm thinking of doing it as a public service to spare everyone else the grief....
Al
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
getting "extra keys" to work on a keyboard bobbens Linux - Hardware 13 06-24-2008 08:59 AM
Keyboard is swapping keys jamiem Linux - Newbie 7 06-23-2005 08:50 PM
"<" ">" Keyboard keys on Toshiba Satellite 1005-s157 dont work RodCas Linux - Laptop and Netbook 1 05-08-2004 04:22 PM
Need help setting up "extra" keys on a Logitech iTouch Keyboard. Theoutdoorsman Linux - Software 4 11-16-2003 10:02 AM
Need help setting up the "extra" keys on my Logitech iTouch Keyboard Theoutdoorsman Linux - Hardware 1 10-16-2003 05:28 AM


All times are GMT -5. The time now is 12:21 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration