Originally posted by RavenEA:
When I launch X11, no matter what the window manager, it launches most of the windows way above and/or to the left of my screen boundaries. Anger and frustration result. How can I fix this?
-RavenEA
put this in your ~/.xinitrc file:
#!/bin/sh
# $Id: xinitrc,v 1.1 2003/01/29 00:07:55 jharper Exp $
# Added with XDarwin to correct for locale problems
if [ -f /sw/bin/init.sh ]; then source /sw/bin/init.sh; fi
unset LANG
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=XINITDIR/.Xresources
sysmodmap=XINITDIR/.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
# Start the proper window manager and programs
# Find out if X11 is running at all
x11pid=$(cat /tmp/.X0-lock)
if [ $x11pid -ne 0 ] ; then
# Determine if "XDarwin" is running
isXDarwin="`ps -x -o command | grep XDarwin | grep -v grep | wc -l`"
if [ $isXDarwin -ne 0 ] ; then
twm &
xterm -geometry 120x54+10+10
fi
# Determine if "X11.app" is running
isApple="`ps -x -o command | grep X11.app | grep -v grep | wc -l`"
if [ $isApple -ne 0 ] ; then
# start some nice programs
xterm -fa courier -fs 15 -name "100% VEGAN" &
# start the window manager
exec quartz-wm
fi
fi