This repository has been archived on 2025-12-28. You can view files and clone it, but cannot push or open issues or pull requests.
inks-scripts/scripts/trayer-toggle

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