#!/bin/sh # # .xsession/.xinitrc # ############################################################################ # # Start of Config # # Set the TimeZone # eg: PST8PDT # MY_TIME_ZONE="" # Location, GNUstep-style # eg: America/Los_Angeles # MY_LOCATION="" # Languages, in order of preference # eg: (English, French, German) # MY_LANGUAGES="" # Window Manager specific options # eg: --no-clip # OPTIONS="" # Full path to Window Manager # eg: /usr/X11R6/bin/wmaker # WINDOW_MANAGER="" # Full path to alternative Window Manager # eg: /usr/X11R6/bin/twm # ALTERNATIVE_WM="" # Full path to GNUstep System Root # eg: /usr/local/GNUstep/System # GNUSTEP_SYSTEM_ROOT="" # Use X11 (TrueType) Font Server # 1 for Yes -- 0 for No # USE_XFS= USE_XFSTT= # # End of Config # ############################################################################ ############################################################################ # # Source in TrueType fonts # if [ $USE_XFS -eq 1 ]; then xset fp+ unix/:7100 fi if [ $USE_XFSTT -eq 1 ]; then xset fp+ unix/:7101 fi ############################################################################ # # Window Manager # WM_not_there=0 if [ ! -f "$WINDOW_MANAGER" ]; then echo "`basename $WINDOW_MANAGER` does not exist." > /dev/console WM_not_there=1 WINDOW_MANAGER="$ALTERNATIVE_WM" OPTIONS="" echo "Using `basename $WINDOW_MANAGER` instead." > /dev/console fi export WINDOW_MANAGER xrdb -merge ~/.Xdefaults xsetroot -def ############################################################################ # # Source in GNUstep settings, if they exist # GS_not_there=1 if [ -f $GNUSTEP_SYSTEM_ROOT/Makefiles/GNUstep.sh ]; then . $GNUSTEP_SYSTEM_ROOT/Makefiles/GNUstep.sh GS_not_there=0 fi ############################################################################ # # Start Window Manager # $WINDOW_MANAGER $OPTIONS & wmpid=$! ############################################################################ # # If Window Manager exists, try to launch GNUstep tools # if [ "$WM_not_there" -eq 0 ]; then # # Additional GNUstep settings, if GNUstep is installed # if [ "$GS_not_there" -eq 0 ]; then # # TimeZone # if [ "$GNUSTEP_TZ" = "" ]; then export GNUSTEP_TZ="$MY_TIME_ZONE" fi # # Start Distributed Notification Center # if [ `gdomap -L GDNCServer | grep -c Found` = '0' ]; then $GNUSTEP_SYSTEM_ROOT/Tools/gdnc fi # # Set GUI defaults # defaults write NSGlobalDomain GSBackend "libgnustep-xgps" defaults write NSGlobalDomain GSBrowserCellFontify YES defaults write NSGlobalDomain GSSavePanelShowProgress YES defaults write NSGlobalDomain "Local Time Zone" "$MY_LOCATION" defaults write NSGlobalDomain NSHost "`hostname`" defaults write NSGlobalDomain NSInterfaceStyleDefault NSNextStepInterfaceStyle defaults write NSGlobalDomain NSLanguages "$MY_LANGUAGES" defaults write NSGlobalDomain NSMeasurementUnit Centimeters defaults write NSGlobalDomain NSMenuInterfaceStyle NSNextStepInterfaceStyle # # Set XGPS defaults # defaults write NSGlobalDomain GSBorderedBorderlessWindows YES defaults write NSGlobalDomain GSFontAntiAlias YES defaults write NSGlobalDomain GraphicCompositing YES # # Can't remember, where I found that one, nor what it does ... # defaults write NSGlobalDomain ImageCompositing YES # # Start PasteBoard Server # if [ `gdomap -L GNUstepGSPasteboardServer | grep -c Found` = '0' ]; then $GNUSTEP_SYSTEM_ROOT/Tools/gpbs fi fi else GS_not_there=1 fi if [ "$GS_not_there" -eq 1 ]; then echo "Not starting GNUstep." > /dev/console fi ############################################################################ # # Let's rock # wait $wmpid # End of File. # ############################################################################