AW: keyboard behaviour with cygwin/xfree86
Frank Meier
fmeier@ifh.ee.ethz.ch
Wed Jul 18 03:14:00 GMT 2001
> > I read in one of the mailing lists that I should load
> > the correct keyboard map using the xmodmap command,
> > e.g. "xmodmap xmodmap.fr" or something like that
> > (for a frech keyboard in this case).
> > Is that right ???
> > If so:
> > How to get the correct keyboard map ???
> I have collected some of them on http://www.tu-chemnitz.de/~goal/xfree .
>
> > Where to put this map ???
> copy it to /etc/Xmodmap.window_host_name
> > Where to put the xmodmap command ???
> > ( before or after the XWin.exe call in startxwin.bat) ????
> Best would be in xdm config. Check your Xsetup from the xdm dir.
> If there is
> a line "hostmodmap=${ETCDIR}/Xmodmap.${DISPLAY%:*}" and later
> "test -r $hostmodmap && $xmodmap $hostmodmap" then it should already work.
> Otherwise add a line "xmodmap /etc/Xmodmap.${DISPLAY%:*}".
According to my survey, Xsetup is not executed!
After retrieving http://www-user.tu-chemnitz.de/~goal/xfree/xmodmap.de.bz2 , unpacking and copying to /etc/X11
$ bzip2 -d xmodmap.de.bz2
$ cp xmodmap.de /etc/X11/Xmodmap.${DISPLAY%:*}
and calling
$ xmodmap /etc/X11/Xmodmap.${DISPLAY%:*}
in a xterm, the keyboardmap was changed correctly. Later, I added this line
to /usr/X11R6/startwin.bat:
...
set DISPLAY=127.0.0.1:0.0
start /B XWin -screen 0 640x768x8 -engine 4
start /B xmodmap /etc/X11/Xmodmap.127.0.0.1
start /B twm
...
Using the environment variable DISPLAY of MS-DOS/MS-Windows does
not work because ':0.0' is not removed.
start /B xmodmap /etc/X11/Xmodmap.${DISPLAY%:*}
Does not work because '${DISPLAY%:*}' is avaiable in a /bin/*sh only which
is not running at that time. You can execute xmodmap in /usr/X11R6/bin/startxwin
as well by adding:
#! /bin/sh
export DISPLAY=127.0.0.1:0.0
....
XWin -screen 0 640x480x8 &
xmodmap /etc/X11/Xmodmap.${DISPLAY%:*} &
twm &
....
But I am still looking for a better place to set the keyboard.
Best regards,
Frank
More information about the Cygwin-xfree
mailing list