Re: remapping keys
Re: remapping keys
- Subject: Re: remapping keys
- From: Brandon Allbery <email@hidden>
- Date: Sun, 13 Jan 2013 12:03:04 -0500
On Sun, Jan 13, 2013 at 11:19 AM, Jim Anderson
<email@hidden> wrote:
I need to map the Option key to the Meta key in order to use emacs conveniently. I'm not all the familiar with X-Windows, but I assume there's a program to show me the symkeys as I type, and a program to remap one key to anpther.
The first is xev, and the second is xmodmap.
pyanfar:10012 Z$ xmodmap -pm
xmodmap: up to 2 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x40), Shift_R (0x44)
lock Caps_Lock (0x41)
control Control_L (0x43), Control_R (0x46)
mod1 Alt_L (0x42), Alt_R (0x45)
mod2 Meta_L (0x3f), Meta_R (0x47)
mod3
mod4
mod5
(This is with "Option keys send Alt_L and Alt_R" checked in the Input pane of the X11/XQuartz Preferences; without that, they will be mapped to Mode_switch.)
So you want to swap mod1 and mod2. This works much like the example in the xmodmap manpage for swapping lock and control:
remove mod1 = Alt_L Alt_R
remove mod2 = Meta_L Meta_R
keysym Alt_L = Meta_L
keysym Meta_L = Alt_L
add mod1 = Meta_L Meta_R
add mod2 = Alt_L Alt_R
To have this run when X11 starts, put the above in the file ~/.Xmodmap.
--
brandon s allbery kf8nh sine nomine associates
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden