14 lines
220 B
Bash
Executable File
14 lines
220 B
Bash
Executable File
#!/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
|