Ajax sounds for claude
This commit is contained in:
commit
d99f37e7fa
BIN
PermissionRequest/ajax074.mp3
Normal file
BIN
PermissionRequest/ajax074.mp3
Normal file
Binary file not shown.
BIN
PermissionRequest/ajax076.mp3
Normal file
BIN
PermissionRequest/ajax076.mp3
Normal file
Binary file not shown.
BIN
PermissionRequest/ajax078.mp3
Normal file
BIN
PermissionRequest/ajax078.mp3
Normal file
Binary file not shown.
BIN
PermissionRequest/ajax080.mp3
Normal file
BIN
PermissionRequest/ajax080.mp3
Normal file
Binary file not shown.
BIN
PermissionRequest/ajax087.mp3
Normal file
BIN
PermissionRequest/ajax087.mp3
Normal file
Binary file not shown.
BIN
PermissionRequest/ajax130.mp3
Normal file
BIN
PermissionRequest/ajax130.mp3
Normal file
Binary file not shown.
BIN
PermissionRequest/ajax137.mp3
Normal file
BIN
PermissionRequest/ajax137.mp3
Normal file
Binary file not shown.
BIN
PermissionRequest/ajax138.mp3
Normal file
BIN
PermissionRequest/ajax138.mp3
Normal file
Binary file not shown.
BIN
PermissionRequest/ajax148.mp3
Normal file
BIN
PermissionRequest/ajax148.mp3
Normal file
Binary file not shown.
BIN
PermissionRequest/ajax161.mp3
Normal file
BIN
PermissionRequest/ajax161.mp3
Normal file
Binary file not shown.
BIN
SessionStart/ajax085.mp3
Normal file
BIN
SessionStart/ajax085.mp3
Normal file
Binary file not shown.
BIN
SessionStart/ajax090.mp3
Normal file
BIN
SessionStart/ajax090.mp3
Normal file
Binary file not shown.
BIN
SessionStart/ajax105.mp3
Normal file
BIN
SessionStart/ajax105.mp3
Normal file
Binary file not shown.
BIN
SessionStart/ajax106.mp3
Normal file
BIN
SessionStart/ajax106.mp3
Normal file
Binary file not shown.
BIN
SessionStart/ajax108.mp3
Normal file
BIN
SessionStart/ajax108.mp3
Normal file
Binary file not shown.
BIN
SessionStart/ajax115.mp3
Normal file
BIN
SessionStart/ajax115.mp3
Normal file
Binary file not shown.
BIN
SessionStart/ajax151.mp3
Normal file
BIN
SessionStart/ajax151.mp3
Normal file
Binary file not shown.
BIN
SessionStart/ajax159.mp3
Normal file
BIN
SessionStart/ajax159.mp3
Normal file
Binary file not shown.
1
StopFailure
Symbolic link
1
StopFailure
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
PermissionRequest
|
||||||
BIN
TaskCompleted/ajax081.mp3
Normal file
BIN
TaskCompleted/ajax081.mp3
Normal file
Binary file not shown.
BIN
TaskCompleted/ajax104.mp3
Normal file
BIN
TaskCompleted/ajax104.mp3
Normal file
Binary file not shown.
BIN
TaskCompleted/ajax110.mp3
Normal file
BIN
TaskCompleted/ajax110.mp3
Normal file
Binary file not shown.
BIN
TaskCompleted/ajax135.mp3
Normal file
BIN
TaskCompleted/ajax135.mp3
Normal file
Binary file not shown.
BIN
TaskCompleted/ajax139.mp3
Normal file
BIN
TaskCompleted/ajax139.mp3
Normal file
Binary file not shown.
BIN
TaskCompleted/ajax153.mp3
Normal file
BIN
TaskCompleted/ajax153.mp3
Normal file
Binary file not shown.
BIN
TaskCompleted/ajax154.mp3
Normal file
BIN
TaskCompleted/ajax154.mp3
Normal file
Binary file not shown.
BIN
TaskCompleted/ajax155.mp3
Normal file
BIN
TaskCompleted/ajax155.mp3
Normal file
Binary file not shown.
BIN
TaskCompleted/ajax169.mp3
Normal file
BIN
TaskCompleted/ajax169.mp3
Normal file
Binary file not shown.
BIN
TaskCompleted/ajax170.mp3
Normal file
BIN
TaskCompleted/ajax170.mp3
Normal file
Binary file not shown.
BIN
TaskCreated/ajax088.mp3
Normal file
BIN
TaskCreated/ajax088.mp3
Normal file
Binary file not shown.
BIN
TaskCreated/ajax093.mp3
Normal file
BIN
TaskCreated/ajax093.mp3
Normal file
Binary file not shown.
BIN
TaskCreated/ajax095.mp3
Normal file
BIN
TaskCreated/ajax095.mp3
Normal file
Binary file not shown.
BIN
TaskCreated/ajax107.mp3
Normal file
BIN
TaskCreated/ajax107.mp3
Normal file
Binary file not shown.
BIN
TaskCreated/ajax114.mp3
Normal file
BIN
TaskCreated/ajax114.mp3
Normal file
Binary file not shown.
BIN
TaskCreated/ajax143.mp3
Normal file
BIN
TaskCreated/ajax143.mp3
Normal file
Binary file not shown.
42
play-hook-sound.sh
Executable file
42
play-hook-sound.sh
Executable file
|
|
@ -0,0 +1,42 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
# Usage: play-hook-sound.sh <hook-type>
|
||||||
|
# hook-type: PermissionRequest | SessionStart | TaskCreated | TastCompleted
|
||||||
|
|
||||||
|
SOUNDS_DIR="$(dirname "$0")"
|
||||||
|
HOOK_TYPE="${1:-}"
|
||||||
|
|
||||||
|
if [[ -z "$HOOK_TYPE" ]]; then
|
||||||
|
echo "Usage: $0 <hook-type>" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
FOLDER="$SOUNDS_DIR/$HOOK_TYPE"
|
||||||
|
|
||||||
|
if [[ ! -d "$FOLDER" ]]; then
|
||||||
|
echo "Unknown hook type: $HOOK_TYPE" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Pick a random mp3 from the folder
|
||||||
|
mapfile -t FILES < <(ls "$FOLDER"/*.mp3 2>/dev/null)
|
||||||
|
|
||||||
|
if [[ ${#FILES[@]} -eq 0 ]]; then
|
||||||
|
echo "No sounds found in $FOLDER" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
SOUND="${FILES[RANDOM % ${#FILES[@]}]}"
|
||||||
|
|
||||||
|
# Play using whatever is available
|
||||||
|
if command -v mpv &>/dev/null; then
|
||||||
|
mpv --no-terminal "$SOUND" &
|
||||||
|
elif command -v paplay &>/dev/null; then
|
||||||
|
paplay "$SOUND" &
|
||||||
|
elif command -v aplay &>/dev/null; then
|
||||||
|
aplay "$SOUND" &
|
||||||
|
elif command -v ffplay &>/dev/null; then
|
||||||
|
ffplay -nodisp -autoexit "$SOUND" &>/dev/null &
|
||||||
|
else
|
||||||
|
echo "No audio player found (mpv, paplay, aplay, ffplay)" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
Loading…
Reference in New Issue
Block a user