#!/bin/bash

if ! [ -a $HOME/.fluxbox/fluxtips ] ; then
    echo 1 > ~/.fluxbox/fluxtips
fi
style=`cat ~/.fluxbox/init | grep -i stylefile | cut -d : -f 2`
style=`basename "$style"`

case $style in
    VineStyleIV)
        fbsetbg /usr/share/fluxbox/backgrounds/VineStyleIV.jpg
        /usr/share/fluxbox/fb_welcome VineStyle
        ;;
    BlueStarVIII)
        fbsetbg /usr/share/fluxbox/backgrounds/BlueStarVIII.jpg
        /usr/share/fluxbox/fb_welcome BlueStar
        ;;
    muscat)
	fbsetbg /usr/share/fluxbox/backgrounds/muscat.jpg
	/usr/share/fluxbox/fb_welcome muscat
	;;
    Artwiz)
        fbsetroot -mod 4 4 -bg rgb:10/18/20 -fg rgb:30/38/40 ;;
    BlueNight)
        fbsetroot -solid rgb:6A/9A/AF ;;
    Carbondioxide)
        fbsetroot -gradient vertical -from black -to white ;;
    Clean)
        fbsetroot -solid rgb:9A/9A/90 ;;
    Cthulhain)
        fbsetroot -solid rgb:3a/40/4b ;;
    Flux)
        fbsetroot -solid rgb:4/4/38 ;;
    LemonSpace)
        fbsetroot -solid rgb:db/bc/83 ;;
    Makro)
        fbsetroot -solid rgb:9A/9A/90 ;;
    MerleyKay)
        fbsetroot -mod 5 5 -fg rgb:62/70/85 -bg rgb:52/60/75 ;;
    Meta)
        fbsetroot -solid rgb:d6/d7/e7 ;;
    Minimal)
        fbsetroot -solid SlateGrey ;;
    Nyz)
        fbsetroot -solid grey20 ;;
    Operation)
        fbsetroot -gradient interlacedcrossdiagonal -from rgb:6/9/c -to rgb:3/48/6 ;;
    Outcomes)
        fbsetroot -mod 4 4 -fg rgb:54/6/6 -bg grey20 ;;
    Rampage)
        fbsetroot -mod 16 8 -bg rgb:0/8/8 -fg rgb:0/9/9 ;;
    Results)
        fbsetroot -mod 4 4 -fg rgb:6/6/5c -bg grey20 ;;
    Shade)
        fbsetroot -solid rgb:4/4/4 ;;
    Spiff)
        fbsetroot -mod 2 2 -fg rgb:48/50/68 -bg rgb:50/58/70 ;;
    Twice)
        fbsetroot -solid grey20 ;;
    qnx-photon)
        fbsetroot -solid white ;;
    *)
        fbsetroot -solid black ;;
esac
