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

# If no icewmbg, start it
if which chbg; then
    chbg -once -effect 0 &
else
    PID1=$(skill -n icewmbg)
    if [ -z "$PID1" ]; then
      icewmbg &
    else
      icewmbg -r
    fi
fi
exec icewm
