#!/bin/sh
# $Id: startfluxbox.in 4980 2007-07-07 23:11:04Z markt $
#
# /usr/bin/startfluxbox
#
# Called by xinitrc.fluxbox, first it handles command line arguments,
# then starts Fluxbox with its log
echo "Beginning Fluxbox Start script."
command="`basename \"$0\"`"
# Handles command line options
# This is generally unnecessary since I always start Fluxbox from a script,
# which means no command line arguments get passed in
while [ $# -gt 0 ]; do
case "$1" in
-c|--config)
if [ $# -lt 2 ]; then
echo "$command:error, missing argument"
exit 1
fi
shift
startup=$1
;;
-h|--help) cat <<EOF
Usage: $command [-h] [-c
file]
EOF
exit
;;
esac
shift
done
##### Fluxbox Settings #####
# Set background
#/usr/bin/fbsetroot -solid black
#/usr/bin/fbsetroot -solid SteelBlue # aka #1C232E
#fbsetbg -f /home/blah/pics/desktops/2880x1200_NGC.1999.Reflection.Nebula--Barnard.33.Horsehead.Nebula.jpg
#fbsetbg -f /home/blah/pics/desktops/2880x1200_Southern.Milky.Way\(Carina.on.left\,constellation.Orion.on.right\)--SEMJ30TM41F.
jpg
#fbsetbg -f /home/blah/pics/desktops/2880x1280_Summer.Triangle\(Vega\,Altair\,Deneb\)--SEMVXXM5NDF.jpg
#fbsetbg -f /home/blah/pics/desktops/2880x1200_Witch\'s.Broom.Nebula\(within.the.Veil.Nebula\)--SEM4THWUP4F.jpg
#fbsetbg -f /home/blah/pics/desktops/2880x1200_unknown-NGC7293\(Helix_Nebula\).jpg
fbsetbg -f /home/blah/pics/desktops/2880x1202_Carina.Nebula--SEMN6AMJC0F.jpg
#fbsetbg -f /home/blah/pics/desktops/3200x1200_M104\(sombrero_galaxy\)-UGC10214\(tadpole_galaxy\).jpg
##### Finally Start Fluxbox #####
# Note that because it is the last app, you have to run it with 'exec' before it.
printf "Fluxbox "
exec /usr/bin/fluxbox -log "/var/log/fluxbox.log"