.xmodmaprc? (Was: Alt-Ctrl occupied?)
.xmodmaprc? (Was: Alt-Ctrl occupied?)
- Subject: .xmodmaprc? (Was: Alt-Ctrl occupied?)
- From: Dirk Kostrewa <email@hidden>
- Date: Tue, 19 May 2009 09:45:21 +0200
Dear X11 developers & users,
just a follow-up of my original question: I've modified the keyboard
mapping with xmodmap to solve my Alt-Ctrl problem (see below).
However, this setting is not saved into a ~/.xmodmaprc file and just
gets lost after logging out. Am I missing something?
Best regards,
Dirk.
Am 18.05.2009 um 16:51 schrieb Dirk Kostrewa:
Hello Harald,
yes. that solved my problem!
Here is the old X11 keyboard mapping:
$ xmodmap -display $DISPLAY
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 Mode_switch (0x42), Mode_switch (0x45)
mod2 Meta_L (0x3f), Meta_R (0x47)
mod3
mod4
mod5
After issuing "xmodmap -e 'keycode 66 = Alt_L'", I have now:
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), Mode_switch (0x45)
mod2 Meta_L (0x3f), Meta_R (0x47)
mod3
mod4
mod5
With this mapping, Alt-Ctrl-left mouse click works!
Many thanks for your quick help!
Best regards,
Dirk.
Am 18.05.2009 um 16:32 schrieb Harald Hanche-Olsen:
+ Dirk Kostrewa <email@hidden>:
This is what I get in xev when first pressing Alt/Option-Ctrl, then
clicking the left mouse button and releasing the keys again:
KeyPress event, serial 29, synthetic NO, window 0x600001,
root 0x1fd, subw 0x0, time 1408704823, (80,144), root:(80,166),
state 0x0, keycode 66 (keysym 0xff7e, Mode_switch), same_screen
YES,
Ah, so your Alt key is actually set up as Mode_switch. Now that I
think of it, so is mine. If you really want it to act as Alt under
X11, you need to run
xmodmap -e 'keycode 66 = Alt_L'
But then, of course, you lose the ability to type many characters
that
require this key. It's a trade-off.
- Harald
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden
*******************************************************
Dirk Kostrewa
Gene Center, A 5.07
Ludwig-Maximilians-University
Feodor-Lynen-Str. 25
81377 Munich
Germany
Phone: +49-89-2180-76845
Fax: +49-89-2180-76999
E-mail: email@hidden
*******************************************************
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden
*******************************************************
Dirk Kostrewa
Gene Center, A 5.07
Ludwig-Maximilians-University
Feodor-Lynen-Str. 25
81377 Munich
Germany
Phone: +49-89-2180-76845
Fax: +49-89-2180-76999
E-mail: email@hidden
*******************************************************
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden