0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[Tips] Claude Code の実行完了音さえも楽しむ 🔈

0
Posted at

Claude Code は実行完了時に音を鳴らせますし、音の変更もできます🙌

小さなことから楽しみましょ〜🐰🌊

設定方法

~/.claude/settings.json に以下を追加

{
  "hooks": {
    "Stop": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "afplay /System/Library/Sounds/Bottle.aiff"
          }
        ]
      }
    ]
  }
}

これだけ。Claude Codeのターンが終わるたびに音が鳴ります。

許可リクエスト時にも鳴らす

長い処理の途中で許可を求められても気づけるように

  {
    "hooks": {
      "PermissionRequest": [
        {
          "matcher": "*",
          "hooks": [
            {
              "type": "command",
              "command": "afplay /System/Library/Sounds/Bottle.aiff"
            }
          ]
        }
      ],
      "Stop": [
        {
          "hooks": [
            {
              "type": "command",
              "command": "afplay /System/Library/Sounds/Bottle.aiff"
            }
          ]
        }
      ]
    }
  }

選べるサウンド一覧

/System/Library/Sounds/ に14種類あります!

サウンド 特徴
Basso 低音、エラー感
Blow ふわっと柔らかい
Bottle ポコッと心地よい
Frog カエル
Funk ファンキー
Glass デフォルト的な透明感
Hero 達成感
Morse モールス信号
Ping シンプルな通知音
Pop 小気味よいポップ
Purr 猫っぽい振動音
Sosumi クラシックMac
Submarine 潜水艦ソナー
Tink 小さく軽い

これ使って好きなやつ見つけてね🐰👍

 # 個別に再生
  afplay /System/Library/Sounds/Bottle.aiff

  # 全部順番に再生
  for f in /System/Library/Sounds/*.aiff; do echo "$(basename $f .aiff)" && afplay "$f" && sleep 1; done
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?