#!/usr/bin/env bash

test_path="/tmp/trayer.exists"

if [ -f "$test_path" ]; then
    echo "stopping trayer"
    killall trayer
    rm "$test_path"
else
    echo "starting trayer"
    touch "$test_path"
    exec "$@"
fi
