commit d99f37e7fa7b5520e2b66ea525cc01d2ce7dd6cd Author: schmop Date: Tue Apr 14 08:28:02 2026 +0200 Ajax sounds for claude diff --git a/PermissionRequest/ajax074.mp3 b/PermissionRequest/ajax074.mp3 new file mode 100644 index 0000000..463e679 Binary files /dev/null and b/PermissionRequest/ajax074.mp3 differ diff --git a/PermissionRequest/ajax076.mp3 b/PermissionRequest/ajax076.mp3 new file mode 100644 index 0000000..b1f8875 Binary files /dev/null and b/PermissionRequest/ajax076.mp3 differ diff --git a/PermissionRequest/ajax078.mp3 b/PermissionRequest/ajax078.mp3 new file mode 100644 index 0000000..095ef9d Binary files /dev/null and b/PermissionRequest/ajax078.mp3 differ diff --git a/PermissionRequest/ajax080.mp3 b/PermissionRequest/ajax080.mp3 new file mode 100644 index 0000000..5537b52 Binary files /dev/null and b/PermissionRequest/ajax080.mp3 differ diff --git a/PermissionRequest/ajax087.mp3 b/PermissionRequest/ajax087.mp3 new file mode 100644 index 0000000..469b532 Binary files /dev/null and b/PermissionRequest/ajax087.mp3 differ diff --git a/PermissionRequest/ajax130.mp3 b/PermissionRequest/ajax130.mp3 new file mode 100644 index 0000000..69cbd21 Binary files /dev/null and b/PermissionRequest/ajax130.mp3 differ diff --git a/PermissionRequest/ajax137.mp3 b/PermissionRequest/ajax137.mp3 new file mode 100644 index 0000000..51b926b Binary files /dev/null and b/PermissionRequest/ajax137.mp3 differ diff --git a/PermissionRequest/ajax138.mp3 b/PermissionRequest/ajax138.mp3 new file mode 100644 index 0000000..ccbd485 Binary files /dev/null and b/PermissionRequest/ajax138.mp3 differ diff --git a/PermissionRequest/ajax148.mp3 b/PermissionRequest/ajax148.mp3 new file mode 100644 index 0000000..c654695 Binary files /dev/null and b/PermissionRequest/ajax148.mp3 differ diff --git a/PermissionRequest/ajax161.mp3 b/PermissionRequest/ajax161.mp3 new file mode 100644 index 0000000..aa08cdd Binary files /dev/null and b/PermissionRequest/ajax161.mp3 differ diff --git a/SessionStart/ajax085.mp3 b/SessionStart/ajax085.mp3 new file mode 100644 index 0000000..e7682ff Binary files /dev/null and b/SessionStart/ajax085.mp3 differ diff --git a/SessionStart/ajax090.mp3 b/SessionStart/ajax090.mp3 new file mode 100644 index 0000000..21fd840 Binary files /dev/null and b/SessionStart/ajax090.mp3 differ diff --git a/SessionStart/ajax105.mp3 b/SessionStart/ajax105.mp3 new file mode 100644 index 0000000..d5e1a15 Binary files /dev/null and b/SessionStart/ajax105.mp3 differ diff --git a/SessionStart/ajax106.mp3 b/SessionStart/ajax106.mp3 new file mode 100644 index 0000000..adab816 Binary files /dev/null and b/SessionStart/ajax106.mp3 differ diff --git a/SessionStart/ajax108.mp3 b/SessionStart/ajax108.mp3 new file mode 100644 index 0000000..c09300a Binary files /dev/null and b/SessionStart/ajax108.mp3 differ diff --git a/SessionStart/ajax115.mp3 b/SessionStart/ajax115.mp3 new file mode 100644 index 0000000..5a55421 Binary files /dev/null and b/SessionStart/ajax115.mp3 differ diff --git a/SessionStart/ajax151.mp3 b/SessionStart/ajax151.mp3 new file mode 100644 index 0000000..e304570 Binary files /dev/null and b/SessionStart/ajax151.mp3 differ diff --git a/SessionStart/ajax159.mp3 b/SessionStart/ajax159.mp3 new file mode 100644 index 0000000..ca27959 Binary files /dev/null and b/SessionStart/ajax159.mp3 differ diff --git a/Stop b/Stop new file mode 120000 index 0000000..30689db --- /dev/null +++ b/Stop @@ -0,0 +1 @@ +TaskCompleted \ No newline at end of file diff --git a/StopFailure b/StopFailure new file mode 120000 index 0000000..36499bf --- /dev/null +++ b/StopFailure @@ -0,0 +1 @@ +PermissionRequest \ No newline at end of file diff --git a/TaskCompleted/ajax081.mp3 b/TaskCompleted/ajax081.mp3 new file mode 100644 index 0000000..b07698c Binary files /dev/null and b/TaskCompleted/ajax081.mp3 differ diff --git a/TaskCompleted/ajax104.mp3 b/TaskCompleted/ajax104.mp3 new file mode 100644 index 0000000..5e6cfa1 Binary files /dev/null and b/TaskCompleted/ajax104.mp3 differ diff --git a/TaskCompleted/ajax110.mp3 b/TaskCompleted/ajax110.mp3 new file mode 100644 index 0000000..dcc6a2b Binary files /dev/null and b/TaskCompleted/ajax110.mp3 differ diff --git a/TaskCompleted/ajax135.mp3 b/TaskCompleted/ajax135.mp3 new file mode 100644 index 0000000..c99a763 Binary files /dev/null and b/TaskCompleted/ajax135.mp3 differ diff --git a/TaskCompleted/ajax139.mp3 b/TaskCompleted/ajax139.mp3 new file mode 100644 index 0000000..24bef47 Binary files /dev/null and b/TaskCompleted/ajax139.mp3 differ diff --git a/TaskCompleted/ajax153.mp3 b/TaskCompleted/ajax153.mp3 new file mode 100644 index 0000000..5a89231 Binary files /dev/null and b/TaskCompleted/ajax153.mp3 differ diff --git a/TaskCompleted/ajax154.mp3 b/TaskCompleted/ajax154.mp3 new file mode 100644 index 0000000..637ed09 Binary files /dev/null and b/TaskCompleted/ajax154.mp3 differ diff --git a/TaskCompleted/ajax155.mp3 b/TaskCompleted/ajax155.mp3 new file mode 100644 index 0000000..52121cf Binary files /dev/null and b/TaskCompleted/ajax155.mp3 differ diff --git a/TaskCompleted/ajax169.mp3 b/TaskCompleted/ajax169.mp3 new file mode 100644 index 0000000..0c93f55 Binary files /dev/null and b/TaskCompleted/ajax169.mp3 differ diff --git a/TaskCompleted/ajax170.mp3 b/TaskCompleted/ajax170.mp3 new file mode 100644 index 0000000..fa1d685 Binary files /dev/null and b/TaskCompleted/ajax170.mp3 differ diff --git a/TaskCreated/ajax088.mp3 b/TaskCreated/ajax088.mp3 new file mode 100644 index 0000000..224a494 Binary files /dev/null and b/TaskCreated/ajax088.mp3 differ diff --git a/TaskCreated/ajax093.mp3 b/TaskCreated/ajax093.mp3 new file mode 100644 index 0000000..b53be43 Binary files /dev/null and b/TaskCreated/ajax093.mp3 differ diff --git a/TaskCreated/ajax095.mp3 b/TaskCreated/ajax095.mp3 new file mode 100644 index 0000000..f848365 Binary files /dev/null and b/TaskCreated/ajax095.mp3 differ diff --git a/TaskCreated/ajax107.mp3 b/TaskCreated/ajax107.mp3 new file mode 100644 index 0000000..2c51119 Binary files /dev/null and b/TaskCreated/ajax107.mp3 differ diff --git a/TaskCreated/ajax114.mp3 b/TaskCreated/ajax114.mp3 new file mode 100644 index 0000000..e3f9e3b Binary files /dev/null and b/TaskCreated/ajax114.mp3 differ diff --git a/TaskCreated/ajax143.mp3 b/TaskCreated/ajax143.mp3 new file mode 100644 index 0000000..6b5be91 Binary files /dev/null and b/TaskCreated/ajax143.mp3 differ diff --git a/play-hook-sound.sh b/play-hook-sound.sh new file mode 100755 index 0000000..0fb27b2 --- /dev/null +++ b/play-hook-sound.sh @@ -0,0 +1,42 @@ +#!/usr/bin/env bash +# Usage: play-hook-sound.sh +# hook-type: PermissionRequest | SessionStart | TaskCreated | TastCompleted + +SOUNDS_DIR="$(dirname "$0")" +HOOK_TYPE="${1:-}" + +if [[ -z "$HOOK_TYPE" ]]; then + echo "Usage: $0 " >&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