mirror of
https://github.com/theniceboy/.config.git
synced 2025-12-26 14:44:57 +08:00
23 lines
No EOL
529 B
Bash
Executable file
23 lines
No EOL
529 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Required parameters:
|
|
# @raycast.schemaVersion 1
|
|
# @raycast.title Toggle Claude Voice
|
|
# @raycast.mode compact
|
|
|
|
# Optional parameters:
|
|
# @raycast.icon 🔊
|
|
# @raycast.description Toggle Claude Code voice on/off globally
|
|
|
|
voice_flag="$HOME/.claude/voice-enabled"
|
|
|
|
if [ -f "$voice_flag" ]; then
|
|
# Voice is currently on, turn it off
|
|
rm -f "$voice_flag"
|
|
pkill -f 'say' 2>/dev/null
|
|
echo "Claude Voice OFF"
|
|
else
|
|
# Voice is currently off, turn it on
|
|
touch "$voice_flag"
|
|
echo "Claude Voice ON"
|
|
fi |