~/.Xsession

From Earlham CS Department
Jump to navigation Jump to search

.xse.x.xss#!/bin/bash

  1. .xsession - startup script for X sessions
  2. Default version for ACL users
  3. Written Aug/2002 --- jrogers
  4. Updated Aug/2004 --- jrogers
  5. Updated Aug/2005 --- charliep
  6. Updated to use $VTMWRC as initfile if defined on entry
  7. for compatibility with Xsession.ECCS default session Aug/2007 --- jrogers
  8. Updated for ubuntu linux 2.6.24-19-generic Aug/2008 --- jrogers

echo "$0: (ECCS default .xsession) with VTWMRC=$VTWMRC"

  1. Merge in user's .Xresources

if [ -r ~/.Xresources ] then

   xrdb -merge ~/.Xresources

fi

  1. set background
  2. For a solid background uncomment xsetroot and comment out ecsetbg
  3. Argument of xsetroot is a color (see the manpage)
  4. Argument of ecsetbg is a jpeg file in ~/.backgrounds or
  5. /usr/local/acl/share/backgrounds
  6. xsetroot -solid "#356390"

display -window root /usr/local/acl/share/backgrounds/Default

  1. ~/bin/ecsetbgnew Default
  1. xscreensaver

xscreensaver-command -exit xscreensaver -nosplash &

xclock -update 1 -digital -geometry 220x25-0+-8 &

NO_XTERM_PROMPT=1 xterm -geometry 80x24+9+40 -sb -n "Little Shell" -title "Little Shell" & NO_XTERM_PROMPT=1 xterm -icon -fn "-*-fixed-*-*-*-*-20-*-*-*-*-*-*-*" -geometry 80x32-150+40 -sb -n "Big Shell" -title "Big Shell" &

  1. if $VTWMRC is set use it for vtwm's initfile, otherwise use normal
  2. initfile search

if [ -n "$VTWMRC" ] then

   vtwminit="-f $VTWMRC"

else

   vtwminit=""

fi

exec vtwm $vtwminit