bluehz
01-21-2003, 07:30 AM
My shell scripting isn't quite good enough to figure this out - but I suspect its rather easy...
In playing with Apple X11 I have been trying various WindowManagers (WM). In order to switch back and forth between various WM I just open and manually edit my .xinitrc file. Currently a portion of my .xinitrc file looks like this:
# start some nice programs
source /sw/bin/init.sh
xterm -j -rightbar -sb -sl 1000 -bg black -fg green -geometry 80x35+584+20 &
##############################
# WINDOWMANAGERS #
##############################
#
# Quartz-WM
#
#exec /usr/X11R6/bin/quartz-wm
#
# use Blackbox
#
xroot -display :0 -geometry 100x25+0-0 -color gray &
exec /sw/bin/blackbox
#
# Enlightenment
#
#xroot -display :0 -geometry 100x25+0-0 -color gray &
#exec /sw/bin/enlightenment
#
# KDE
#
#KDEWM=quartz-wm
#exec /sw/bin/startkde
You will notice I just comment/uncomment to use various WM.
What I want to know is it possible to modify this so that I might use a command line switch when launching to pick a specified WM - something like:
startx -kde or starx -bbox
Also - currently - if you launch Apple X11 via startx - it only launches a portion of if - I guess just the XServer portion. I have been using
exec /Applications/X11.app/Contents/MacOS/X11 &
and that works - with the added benefit that the overall System $PATH seems to transfer properly. Is this an acceptable method of launching Apple X11 or is there some caveat I am missing?
I guess what I am getting at - is I would like to be able to quickly launch and choose my WM form the CLI using Apple X11 - is this possible?
In playing with Apple X11 I have been trying various WindowManagers (WM). In order to switch back and forth between various WM I just open and manually edit my .xinitrc file. Currently a portion of my .xinitrc file looks like this:
# start some nice programs
source /sw/bin/init.sh
xterm -j -rightbar -sb -sl 1000 -bg black -fg green -geometry 80x35+584+20 &
##############################
# WINDOWMANAGERS #
##############################
#
# Quartz-WM
#
#exec /usr/X11R6/bin/quartz-wm
#
# use Blackbox
#
xroot -display :0 -geometry 100x25+0-0 -color gray &
exec /sw/bin/blackbox
#
# Enlightenment
#
#xroot -display :0 -geometry 100x25+0-0 -color gray &
#exec /sw/bin/enlightenment
#
# KDE
#
#KDEWM=quartz-wm
#exec /sw/bin/startkde
You will notice I just comment/uncomment to use various WM.
What I want to know is it possible to modify this so that I might use a command line switch when launching to pick a specified WM - something like:
startx -kde or starx -bbox
Also - currently - if you launch Apple X11 via startx - it only launches a portion of if - I guess just the XServer portion. I have been using
exec /Applications/X11.app/Contents/MacOS/X11 &
and that works - with the added benefit that the overall System $PATH seems to transfer properly. Is this an acceptable method of launching Apple X11 or is there some caveat I am missing?
I guess what I am getting at - is I would like to be able to quickly launch and choose my WM form the CLI using Apple X11 - is this possible?