<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=us-ascii" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Mario Vukelic wrote:
<blockquote cite="mid:1212911071.15582.21.camel@chronic.localdomain"
type="cite">
<pre wrap="">On Sat, 2008-06-07 at 19:55 -0500, Young wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Have you used X11 keycaps?
</pre>
</blockquote>
<pre wrap=""><!---->
If you wanted to ask how it works:
* Start xkeycaps
* Select the correct keyboard type
* Right-click the Ctrl key in the virtual keyboard
* Select "Exchange Keys"
* When prompted, click the Alt Key. The keys are now exchanged
* Let it write the xmodmap file
* Include the xmodmap command to read the xmodmap file in some
appropriate startup script
* See "man xkeycaps" ang Google for details
</pre>
</blockquote>
<br>
That sounds like an easy way to do it. I'll give it a try. Does it
persist through a restart?<br>
<br>
Several days ago I tried using xmodmap directly. but seemed to find
that it didn't really change what I wanted to change.<br>
<br>
This is an excerpt from a 6/3 email to my local Linux User Group.<br>
-------------------------------------------------------------------------------------------<br>
I've never used xmodmap before, so I guess I'm missing something in the
documentation.
<br>
This is a new Ubuntu 8.04 install.
<br>
<br>
I want to swap the Ctrl and Alt keys, and I'd appreciate any help you
can give.
<br>
<br>
Using XEV I got this for my keyboard.
<br>
<br>
Left Ctrl key keysym 0xffe3 = keycode 37 = Control_L
<br>
Right Ctrl key keysym 0xffe4 = keycode 109 = Control_R
<br>
Left Alt key keysym 0xffe9 = keycode 64 = Alt_L
<br>
Right Alt key keysym 0xffea = keycode 113 = Alt_R
<br>
<br>
Then I run this to Swap Ctrl & Alt.
<br>
<br>
~$ xmodmap -e "keycode 64 = Control_L"
<br>
~$ xmodmap -e "keycode 113 = Control_R"
<br>
~$ xmodmap -e "keycode 37 = Alt_L"
<br>
~$ xmodmap -e "keycode 109 = Alt_R"
<br>
<br>
Checking results with XEV. Now I get this:
<br>
<br>
Left Ctrl key keysym 0xffe9 = keycode 37 = Alt_L
<br>
Right Ctrl key keysym 0xffea = keycode 109 = Alt_R
<br>
Left Alt key keysym 0xffe3 = keycode 64 = Control_L
<br>
Right Alt key keysym 0xffe4 = keycode 113 = Control_R
<br>
<br>
But, when using a keyboard command like Alt+V to Copy as the
replacement for Ctrl+V, it doesn't work. The Ctrl+V still performs a
Paste.
<br>
<br>
I knew that what I did should only work until the next reboot, but I
was going to figure out how to add it to a startup script later.
<br>
-----------------------------------------------------------------------------------------<br>
<br>
</body>
</html>