To change the behaviour of some function keys I used the xmodmap function in my startxwin.sh When starting XWin with 3 screens (startxwin.sh 3), xwin terminates when defining the keys. When I start Xwin using only one screen (startxwin.sh 1) there is no problem en the function keys are well defined. I tried a sleep 5, but this didn't bring anything.
Best regards, Adri #! /bin/sh export DISPLAY=127.0.0.1:0.0 export PATH=/usr/X11R6/bin:"$PATH" export XAPPLRESDIR=/usr/X11R6/lib/X11/app-defaults export XCMSDB=/usr/X11R6/lib/X11/Xcms.txt export XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB export XNLSPATH=/usr/X11R6/lib/X11/locale # Cleanup from last run. #rm -rf /tmp/.X11-unix # The error "Fatal server error: could not open default font 'fixed'" is # caused by using a DOS mode mount for the mount that the Cygwin/X # fonts are accessed through. See the Cygwin/X FAQ for more # information: # http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-error-font-eof # Brief descriptions of XWin-specific options: # # -screen scr_num [width height] # Enable screen scr_num and optionally specify a width and # height for that screen. # Most importantly, any parameters specified before the first -screen # parameter apply to all screens. Any options after the first -screen # parameter apply only to the screen that precedes the parameter. # Example: # XWin -fullscreen -screen 0 -screen 1 -depth 8 -screen 2 # All screens will be fullscreen, but screen 2 will be depth 8, while # screens 0 and 1 will be the default depth (whatever depth Windows # is currently running at). # -multiwindow # Start an integrated Windows-based window manager. Not to be used # with -rootless nor -fullscreen. # -rootless # Use a transparent root window with an external window manager # (such as twm). Not to be used with -multiwindow nor # with -fullscreen. # -fullscreen # Use a window as large as possible on the primary monitor. # -multiplemonitors # Create a root window that covers all monitors on a # system with multiple monitors. # -clipboard # Enable the integrated version of xwinclip. Do not use in # conjunction with the xwinclip program. # -depth bits_per_pixel # Specify the screen depth to run at (in bits per pixel) using a # DirectDraw-based engine in conjunction with the -fullscreen # option, ignored if the -fullscreen option is not specified. # By default, you will be using a DirectDraw based engine on any # system that supports it. # -unixkill # Trap Ctrl+Alt+Backspace as a server shutdown key combination. # -nounixkill # Disable Ctrl+Alt+Backspace as a server shutdown key combination (default). # Example: # XWin -unixkill -screen 0 -screen 1 -screen 2 -nounixkill # Screens 0 and 1 will allow Ctrl+Alt+Backspace, but screen 2 will not. # -winkill # Trap Alt+F4 as a server shutdown key combination (default). # -nowinkill # Disable Alt+F4 as a server shutdown key combination. # -scrollbars # Enable resizing of the server display window. Do not use in conjunction # with -multiwindow nor with -rootless. # -nodecoration # Draw the server root window without a title bar or border. # Do not use with -mutliwindow nor with -rootless. # -lesspointer # Hide the Windows mouse cursor anytime it is over any part of the # window, even if Cygwin/X is not the window with the focus. # -refresh rate_in_Hz # Specify a refresh rate to use when used with the -fullscreen option. # -trayicon # Enable the tray icon (default). # -notrayicon # Disable the tray icon. # Example: # XWin -notrayicon -screen 0 -screen 1 -screen 2 -trayicon # Screens 0 and 1 will not have tray icons, but screen 2 will. # -emulate3buttons [timeout] # Emulate 3 button mouse with an optional timeout in milliseconds. # -xf86config # Specify an XF86Config-style configuration file. # -keyboard # Specify a keyboard device from the configuration file. # # Startup the programs # # Startup the X Server with the integrated Windows-based window manager. # WARNING: Do not use 'xwinclip' in conjunction with the ``-clipboard'' # command-line parameter for XWin. Doing so would start two clipboard # managers, which is never supposed to happen. #XWin -multiwindow -clipboard -silent-dup-error & set -x if [ $1 = 1 ] ; then XWin.exe -ac -clipboard -nodecoration \ -screen 0 1280x1024+1280+0 \ -terminate & xterm & fi if [ $1 = 3 ] ; then XWin.exe -ac -clipboard -nodecoration \ -screen 0 1280x1024+1280+-1024 \ -screen 1 1280x1024+1280+0 \ -screen 2 1280x1024+2560+0 \ -terminate & fi if [ $1 = 5 ] ; then XWin.exe -ac -clipboard -nodecoration \ -screen 0 1280x1024+1280+-1024 \ -screen 1 1280x1024+1280+0 \ -screen 2 1280x1024+2560+0 \ -screen 3 1280x1024+2560+-1024 \ -screen 4 1280x1024+0+-1024 \ -terminate & fi sleep 5 # Startup an xterm, using bash as the shell. #xterm -e /usr/bin/bash -l & #xterm & xmodmap -e "keysym F2 = F16 F16 SunCopy" xmodmap -e "keysym F3 = F18 F18 SunPaste" xmodmap -e "keysym F4 = F20 F20 SunCut" xmodmap -e "keysym F11 = F19 F19 SunFind" xmodmap -e "keysym KP_Enter = Return" # # Startup the twm window manager. # WARNING: Do not use an external window manager in conjunction with # the ``-multiwindow'' command-line parameter for XWin. Doing so # would start two window managers, which is never supposed to happen. # # twm & # Set a background color. Only needed when not using -multwindow for XWin. # xsetroot -solid aquamarine4 # Return from sh. exit -- View this message in context: http://www.nabble.com/Xwin-terminates-when-followed-by-xmodmap-tf4401760.html#a12556974 Sent from the cygwin-xfree mailing list archive at Nabble.com. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/