Le samedi, 11 jan 2003, à 08:26 Europe/Paris, Aaron Magill a écrit :
People have asked, though I can't recall who most recently, about having one .xinitrc file that runs the correct window manager, depending upon how X is started...
I added the following to the end of my .xinitrc file and it seems to work. This relies on the defaults command given earlier to force XDarwin to use display :1, instead of the default of :0 (you can also edit ~/Library/Preferences/org.xfree86.XDarwin.plist with a text editor and change the Display parameter):
if [ X$DISPLAY = "X:0" ]; then
Yes, of course, I should have thought about it. Thanks, thanks, thanks.
insert here xmodmap= -e 'keycode 6 = Mode_switch' if you use a French keyboard# # Assume Apple X11 and start up accordingly #
/usr/X11R6/bin/xterm -geometry 80x20+0+0 &
maybe a nice scrollbar too: -sb
exec /usr/X11R6/bin/quartz-wm else # # Assume XDarwin # /sw/bin/autocutsel &
I've been told autocutsel is not needed anymore
exec /sw/bin/gnome-sessionBecause if you want to run X11 and XDarwin at the same time you cannot use the same server, so one use display 0, the other display 1. By default, if no display is specified, display 0 is used. To run both app side by side you have to change the default for one application. For example for XDarwin with:
fi
Obviously, choose the window manager you wish to use in both. This seems to work for me, though I wonder why the display var is set to :0 and :1 as opposed to :0.0 and :1.0, as they are once an x application is running...
sudo defaults write org.xfree86.XDarwin Display 1
Then XDarwin uses display 1, and X11 the default display 0.
Michèle
<http://micmacfr.homeunix.org/>
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users