Skip to content

Instantly share code, notes, and snippets.

@tomfuertes
Last active February 11, 2026 21:04
Show Gist options
  • Select an option

  • Save tomfuertes/e18a3b4d617edb00efdc6865d74e258e to your computer and use it in GitHub Desktop.

Select an option

Save tomfuertes/e18a3b4d617edb00efdc6865d74e258e to your computer and use it in GitHub Desktop.
Daft Punk notification hook for Claude Code

Daft Punk Notification Hook for Claude Code

Every time Claude Code sends a notification (task complete, waiting for input, etc.), it plays a random clip from Daft Punk's "Harder Better Faster Stronger."

work it / make it / do it / makes us / harder / better / faster / stronger / more than / hour / our / never / ever / after / work is / over

Setup

Add the hook from settings-snippet.json into your ~/.claude/settings.json under hooks.Notification.

Sounds

Drop WAV files in ~/.sounds/ matching the filenames in the hook (e.g. work_it.wav, harder.wav, faster.wav). Source your own clips - none are included here for obvious reasons.

If a clip is missing, it falls back to the macOS system Glass sound. If all clips are missing, you just get Glass every time - still a notification, just less funky.

macOS only (afplay).

{
"hooks": {
"Notification": [
{
"hooks": [
{
"type": "command",
"command": "printf '\\a' > /dev/tty 2>/dev/null; sounds=(work_it.wav make_it.wav do_it.wav makes_us.wav harder.wav better.wav faster.wav stronger.wav more_than.wav hour.wav our.wav never.wav ever.wav after.wav work_is.wav over.wav); f=\"${sounds[$((RANDOM % ${#sounds[@]}))]}\"; sf=\"$HOME/.sounds/$f\"; w=\"${f%.wav}\"; w=\"${w//_/ }\"; if [[ -f \"$sf\" ]]; then (afplay -v 0.5 \"$sf\" 2>/dev/null || afplay /System/Library/Sounds/Glass.aiff) & else afplay /System/Library/Sounds/Glass.aiff & fi"
}
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment