#!/bin/sh
if pgrep $1 > /dev/null ; then
  exit 0
fi
WPID=$(pidof wayfire)
while [ $(pidof wayfire) = $WPID ] ; do
  $@
  sleep 1
done
