This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: startup scripts
- To: Harold Hunt <huntharo at msu dot edu>
- Subject: Re: startup scripts
- From: Luc Ferran <Luc dot FERRAN-EXTERNAL at gemplus dot com>
- Date: Mon, 17 Sep 2001 11:49:00 +0200
- Cc: cygwin-xfree at sourceware dot cygnus dot com
- References: <NHEELHJHHFKPMAEAFMFCGEFHCJAA.huntharo@msu.edu>
Harold,
I don't want to hurt anybody here. My X level is certainly the same
than yours, that's why I've made this proposition to this list.
Now, I give here here way I use hopping that it could be confirmed by
somebody....
First, here is my startx.bat, inspired from cygwin.bat :
----------------------------------
@echo off
C:
chdir \cygwin\bin
bash --login -i -c "startx -- -screen 0 1024 768"
--------------------------------
The option to pass to Xwin must be after startx --. The startx script
mentionned is the one provided by XFree86.
Second, here is my ~/.xinitrc :
-----------------------------------------------------------------
#!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f $userresources ]; then
xrdb -merge $userresources
fi
if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi
#Added by luc to add icewm fonts to the font path
if [ -d $HOME/fonts ]; then
xset fp+ $HOME/fonts
xset fp rehash
fi;
# start some nice programs
xwinclip &
xterm -ls -geometry 87x22+2+2 -font 10x20 -name initalXterm -sl 1000 -sb
-rightbar -ms red -fg yellow -bg black &
xemacs &
exec icewm
-------------------------------------------------------------------------------------------------
ending with the exec <window manger> ensure the fact that the script is
locked on the windowmanger. So, when window manger ends, the scripts
ends with him.
For notice, here is my ~/ .Xressources
------------------------------------------------------
Emacs*font : -adobe-courier-medium-r-normal-*-*-180-*-*-m-*-iso8859-1
-------------------------------------------------------
This way seems to gurantee that that nice progams at the end are
launched when the xserver is ready, so the fonts are available.
Suhaib, Harolds, thanks to your job.
Luc