Mon, 11 May 2009 (17:39 +0200 UTC) Uwe Brauer wrote:
Hello
this is a little off topic I admit.
On a Macintosh Laptop, either native, or with Ubuntu installed on a
virtual machine now using Xemacs I suffer from the lack of keys
(compared say to a thinkpad)
does anybody know, how to bind
1 the apple key as a modifier key, say super
2 the fn key say as anther modifier, say hyper?
either in native, but running X11 or in the virtual machine
Uwe Brauer
I think the answer may depend on the type of Apple laptop (MacBook,
IBook, PowerBook) and the OS version (e.g. 10.4 or 10.5). The OS
version affects (probably) whether you are running XFree X11.app or
X.org X11.app.
The x11-user list
http://lists.apple.com/mailman/listinfo/x11-users
is your friend.
I think that the laptops have keyboard input quirks WRT the special
keys--quirks such as whether they can even be seen at the X11 level.
The Fn key (for example) I believe is invisible to X in 10.4 and lower,
and the distinction between left and righ keys is also not present for
the special keys. On both 10.4 and 10.5 you will have to keep track of
the settings for mouse tracking equivalents because those are likely
eating the input of the Command and Apple keys.
All that said, for my non-notebook iMac 10.5.6 system running the latest
X.org server and xquartz, XQuartz 2.3.3_rc5 (xorg-server 1.5.3-apple6),
I have the following in my .Xmodmap (which works):
clear Shift
clear Lock
clear Control
clear Mod1
clear Mod2
clear Mod3
clear Mod4
clear Mod5
add Shift = Shift_L Shift_R
add Lock = Caps_Lock
add Control = Control_L
add Mod1 = Alt_L
add Mod2 = Meta_L
add Mod3 = Mode_switch
add Mod4 = Super_R
add Mod5 = Hyper_R
keysym 65506 = Shift_R
keysym 65505 = Shift_L
Note, there exists a race condition on startup with the beta X server I
use which means that on some machines (my iMac G5 being one) the
~/.Xmodmap will not install at startup. I have to remember to run
xmodmap by hand after start. The non-beta Apple X server does not have
that problem.
rdr
--
Dr. Robert Delius Royar Associate Professor of English
Morehead State University Morehead, Kentucky
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta