added v1 trayer-toggle script
This commit is contained in:
parent
bea14c3087
commit
1f6e6cca58
13
scripts/trayer-toggle
Executable file
13
scripts/trayer-toggle
Executable 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
|
||||||
Reference in New Issue
Block a user