{"type":"rich","version":"1.0","author_name":"David Pinkerton (npub1jz…aaju6)","author_url":"https://nostr.ae/npub1jz0rlhp9ngs3at2kfhzcnc62sxh0y9rxt40x3z003wmdguljky9quaaju6","provider_name":"njump","provider_url":"https://nostr.ae","html":"Quick quality-of-life tip for Claude Code users on Linux:\n\nI added audible notifications using Claude Code's hooks feature so I don't have to stare at the terminal waiting. Two hooks in settings.json:\n\n- \"permission_prompt\" -- plays a warning sound when Claude needs approval\n- \"idle_prompt\" -- plays a bell when Claude is done and waiting for input\n\nUses notify-send for desktop notifications + pw-play for PipeWire audio. Total config is about 15 lines of JSON.\n\nTip: on GNOME, use -u normal (not critical) so notifications auto-dismiss instead of piling up. The audio does the real alerting anyway.\n\nNow I can context-switch to other work and get dinged when attention is needed. Highly recommend if you're running long tasks.\n\n\"hooks\": {\n  \"Notification\": [\n    {\n      \"matcher\": \"permission_prompt\",\n      \"hooks\": [{\n        \"type\": \"command\",\n        \"command\": \"notify-send -u normal -t 10000 'Claude Code' 'Permission required' \u0026\u0026 pw-play /usr/share/sounds/freedesktop/stereo/dialog-warning.oga\"\n      }]\n    },\n    {\n      \"matcher\": \"idle_prompt\",\n      \"hooks\": [{\n        \"type\": \"command\",\n        \"command\": \"notify-send -u normal -t 10000 'Claude Code' 'Waiting for input' \u0026\u0026 pw-play /usr/share/sounds/freedesktop/stereo/bell.oga\"\n      }]\n    }\n  ]\n}\n\nDocs: https://docs.anthropic.com/en/docs/claude-code/hooks"}
