feat: Initial commit
This commit is contained in:
commit
1e5654e591
10 changed files with 1336 additions and 0 deletions
15
scripts/speechd-toggle
Executable file
15
scripts/speechd-toggle
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
PIDFILE="${XDG_RUNTIME_DIR:-/tmp}/speechd.pid"
|
||||
|
||||
if [ -f "$PIDFILE" ]; then
|
||||
PID=$(cat "$PIDFILE")
|
||||
if kill -0 "$PID" 2>/dev/null; then
|
||||
kill -USR1 "$PID"
|
||||
else
|
||||
echo "Daemon not running (stale pidfile)" >&2
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "Daemon not running (no pidfile)" >&2
|
||||
exit 1
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue