Pulse Notify
A macOS screen-edge breathing light notification effect for Claude Code hooks.
Features
- Gaussian breathing curve with natural inhale/exhale rhythm
- Full-screen edge glow on all four sides
- Dynamic glow size that expands and contracts with breathing
- System sound playback on trigger
- Fully configurable via command-line arguments
Install
Requirements: macOS 11.0+ with Apple Silicon (M1/M2/M3/M4)
As a Claude Code plugin (recommended)
/plugin install pulse-notify --marketplace neokn/claude-notification-hook
On Claude Code older than 2.1.275, add the marketplace first:
/plugin marketplace add neokn/claude-notification-hook
/plugin install pulse-notify@pulse-notify
The plugin registers the hooks for you (see Plugin Configuration); no settings.json edits needed.
Manual install
curl -fsSL https://raw.githubusercontent.com/neokn/claude-notification-hook/main/install.sh | bash
Then add the hooks yourself (see Manual Hook Configuration).
Usage
./pulse-notify [options]
Parameters
Basic
| Parameter | Short | Default | Description |
|---|
--color | -c | orange | Glow color (name or hex) |
--duration | -d | 8 | Duration in seconds |
Supported color names:
white, green, blue, red, orange, purple, yellow, pink, cyan
Hex format: #FF5500 or FF5500
Breathing
| Parameter | Default | Description |
|---|
--breath-cycle | 4.0 | Full breath cycle duration (seconds) |
--min-brightness | 0.15 | Minimum brightness (0-1) |
--max-brightness | 1.0 | Maximum brightness (0-1) |
--inhale-sigma | 0.8 | Inhale Gaussian width (smaller = faster) |
--exhale-sigma | 1.2 | Exhale Gaussian width (larger = slower) |
Glow Size
| Parameter | Default | Description |
|---|
--min-glow-height | 80 | Min height for top/bottom glow (px) |
--max-glow-height | 160 | Max height for top/bottom glow (px) |
--min-glow-width | 100 | Min width for left/right glow (px) |
--max-glow-width | 200 | Max width for left/right glow (px) |
--min-blur | 20 | Min blur radius (px) |
--max-blur | 45 | Max blur radius (px) |
Audio
Sound and speech are independent switches, giving three audio modes:
| Mode | System Sound | Speech | How to trigger |
|---|
| Fully silent | ✗ | ✗ | --mute (glow only) |
| Sound only | ✓ | ✗ | --no-voice, or simply omit any message |
| Sound + speech | ✓ | ✓ | provide a message via stdin or --speak |
Sound
| Parameter | Short | Default | Description |
|---|
--sound | -s | Ping | System sound effect name |
--mute | - | - | Fully silent — disables sound and speech (glow only) |
Available system sounds:
Basso, Blow, Bottle, Frog, Funk, Glass, Hero,
Morse, Ping, Pop, Purr, Sosumi, Submarine, Tink
Speech (Text-to-Speech)
| Parameter | Default | Description |
|---|
--speak | - | Message to speak (fallback if no stdin message) |
--voice | Ralph | macOS voice name |
--no-voice | - | Disable speech only — system sound still plays (sound-only mode) |
Speech priority: stdin message field → --speak parameter → no speech
When triggered by Claude Code hooks, the program automatically reads the message field from stdin JSON and speaks it. Use --speak as a fallback for hooks without messages (like Stop).
List available voices:
say -v '?' # All voices
say -v '?' | grep Taiwan # Taiwan Chinese voices
say -v '?' | grep en_US # US English voices
Examples
# Default (orange glow + Ping sound)
./pulse-notify
# Green success notification
./pulse-notify -c green -d 5 -s Glass
# Red error warning (faster breathing)
./pulse-notify -c red --breath-cycle 2 -s Basso
# Sound only — speech suppressed even when a message is piped in
echo '{"message": "ignored"}' | ./pulse-notify -c blue --max-glow-height 200 --no-voice
# Fully silent — glow only, no sound and no speech (even ignores stdin message)
echo '{"message": "ignored"}' | ./pulse-notify -c blue --mute
# Custom hex color
./pulse-notify -c "#FF6B35" -d 10
# Slow meditation mode
./pulse-notify -c purple --breath-cycle 8 --exhale-sigma 1.5
# With speech
./pulse-notify -c orange -s Glass --speak "Mission accomplished" --voice Daniel
# Test stdin message (simulating Claude hook)
echo '{"message": "Permission needed"}' | ./pulse-notify -c red
Plugin Configuration