#!/usr/bin/env bash test_path="$HOME/.cache/trayer-exists" if [ -f "$test_path" ]; then echo "stopping trayer" killall trayer rm "$test_path" else echo "starting trayer" touch "$test_path" exec "$@" fi