Event Hooks
Community

media

2 events · 2 hooks

Install
1
Install the plugin
$
npx claudepluginhub udecode/dotai --plugin media

Want just this hook?

Then install: npx claudepluginhub u/[userId]/[slug]

Source

Defined in hooks/hooks.json

Configuration
{
  "Stop": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "DISABLED=$(node ${CLAUDE_PLUGIN_ROOT}/scripts/get-env.js CLAUDE_MEDIA_DISABLED false 2>/dev/null || echo 'false'); AUTO_PAUSE=$(node ${CLAUDE_PLUGIN_ROOT}/scripts/get-env.js CLAUDE_MEDIA_AUTO_PAUSE true 2>/dev/null || echo 'true'); if [ \"$DISABLED\" = \"false\" ] && [ \"$AUTO_PAUSE\" = \"true\" ]; then media-control pause 2>/dev/null || true; fi"
        }
      ],
      "matcher": ""
    }
  ],
  "UserPromptSubmit": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "DISABLED=$(node ${CLAUDE_PLUGIN_ROOT}/scripts/get-env.js CLAUDE_MEDIA_DISABLED false 2>/dev/null || echo 'false'); AUTO_START=$(node ${CLAUDE_PLUGIN_ROOT}/scripts/get-env.js CLAUDE_MEDIA_AUTO_START true 2>/dev/null || echo 'true'); if [ \"$DISABLED\" = \"false\" ] && [ \"$AUTO_START\" = \"true\" ]; then media-control play 2>/dev/null || true; fi"
        }
      ],
      "matcher": ""
    }
  ]
}
Summary
{
  "riskFlags": {
    "touchesBash": false,
    "matchAllTools": false,
    "touchesFileWrites": false
  },
  "typeStats": {
    "command": 2
  },
  "eventStats": {
    "Stop": 1,
    "UserPromptSubmit": 1
  },
  "originCounts": {
    "absolutePaths": 0,
    "pluginScripts": 2,
    "projectScripts": 0
  },
  "timeoutStats": {
    "commandsWithoutTimeout": 2
  }
}
Stats
Stars1138
Forks83
Last CommitOct 13, 2025

Similar Hooks