#!/bin/sh 
#
#
# Create some windows
#
# 26-Jun-00 amo Date-of-Birth
#
#
# -title forces black gnd
#
# xterm -geom 100x40+0+0 -title chipmunk -ms gold -exec "ssh1 166.90.172.2" &
#
# -------------------------------------------------------------------
#
usage()
{
  #
  echo ""
  echo "Usage: $0 <Home|Work>"
  echo ""
  #
} # usage
#
#
# xterms for email
#
home()
{
  arg1="$1"
  arg2="$2"
  echo "$arg1 $arg2"
  #
  # Root Window
  xterm -geom 100x40+0+20  -ms cyan -title Planet.root &
  xterm -geom 100x40+20-0  -ms cyan -title www.root &
  #
  # User Window
  xterm -geom 100x50-0+0  -ms cyan -name Planet.alvin &
  xterm -geom 100x40-40-10 -ms cyan -name www.alvin &
  #
  xterm -geom 50x8-0-0  -ms magenta -bg black -fg cyan &
  #
} # home
#
#
# xterms for work window
#
work ()
{
  arg1="$1"
  arg2="$2"
  echo "$arg1 $arg2"
  #
  # top left
  #
  xterm -geom 100x40+0+0   -ms cyan -title chipmunk &
  xterm -geom 100x40+20+20 -ms cyan -title squirrel &
  xterm -geom 100x40+40+40 -ms cyan -title www &
  xterm -geom 100x40+60+60 -ms cyan -title virtual &
  xterm -geom 100x40+80+80 -ms cyan -title power &
  xterm -geom 100x40+100+100 -ms cyan -title penguin &
  xterm -geom 100x40+120+120 -ms cyan -title tradedvd &
  #
  #
  # top right
  #
  xterm -geom 100x40-0+0   -name redhat &
  xterm -geom 100x40-20+20 -name slack &
  xterm -geom 100x40-40+40 -name debian &
  xterm -geom 100x40-60+60 -name suse &
  xterm -geom 100x40-80+80 -name caldera &
  #
} # work
#
#
# Check options
# --------------
#
startup()
{
  #
  case "$1" in
    Home)
      # echo "start home"
      home "Home Setup" "arg2"
      ;;
    Work)
      # echo "start work"
      work "Work Setup" "2"
      ;;
    *)
      usage
      ;;
  esac
  #
} # startup
#
#
# For Loops
# ----------
#
# for i in ` rpm -qa `
# do
#   echo $i >> /tmp/verify.txt
#   rpm --verify $i >> /tmp/verify.txt
#   #
# done
# 
# for script in /etc/rc.d/rc$runlevel.d/S* ; do
# done
#
# =========================================
#    Do it -- pass it the variables
# =========================================
#
startup $*
#
#
# end of file

