#!/bin/sh

matchbox-window-manager &

# Set the root window's name to "xsm-ready"
xsetroot -name "xsm-ready"

# Disable default 10 minute timeout
xset s off -dpms

# Wait for the window manager to be ready
while true; do
    if xwininfo -root -name "xsm-ready" >/dev/null 2>&1; then
        break
    fi
    sleep 0.1
done

# Set your application here. It must be run with 'exec'
# if this pid dies, the xserver will reset.

exec xterm
