added v1 trayer-toggle script

This commit is contained in:
Solomon Laing 2022-11-03 18:43:55 +10:30
parent bea14c3087
commit 1f6e6cca58

13
scripts/trayer-toggle Executable file
View File

@ -0,0 +1,13 @@
#!/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