config/.local/bin/trayer-toggle

14 lines
228 B
Bash
Executable File

#!/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