1 2 3 4 5 6 7 8
#!/bin/sh WMS="metacity" for WM in $WMS; do FILE=$(which $WM) if [ -x "$FILE" ]; then exec "$FILE" "$@" fi done