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