#!/bin/sh
# Switch to icewm from fluxbox

# If no icewmbg, start it
# Is icewmbg around ?
PID1=$(skill -n icewmbg)
if [ "$PID1" ]; then
   icewmbg -r
else
   # set background
   if which launch-chbg &>/dev/null; then
      launch-chbg -once -effect 0 &
   else
      icewmbg &
   fi
fi

exec icewm

