This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: AW: keyboard behaviour with cygwin/xfree86


On Wed, 18 Jul 2001, Frank Meier wrote:

> > > 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!
> 

Can you send me your xdm-config please? I never saw a system, where Xsetup is 
not used when using xdmcp.

> 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.

The ${DISPLAY:0.0} works only for bash
I used it to build a clean setup. If you put the xmodmap call to startxwin.bat
then it`s clear that it needs the modmap for the windows host, so there is no
need to check for a host specific modmap
> 
> 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
> 
> 

-- 
 Alexander.Gottwald@informatik.tu-chemnitz.de 
 http://www.gotti.org
 phone: +49 3725 349 80 80	mobile: +49 172 7854017


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]