Druminaa - Error Sound Alert
Play custom sounds when errors, warnings, or terminal failures occur in VS Code.
Features
- 🔊 Task Failure Detection: Plays sound when tasks fail
- 🖥️ Terminal Monitoring: Detects terminal command failures and non-zero exit codes
- 🎵 Custom Sounds: Set your own error sound file
- 🔄 Easy Commands: Set custom sound or reset to default
- 🎚️ Multi-format Support: MP3, WAV, OGG, M4A, FLAC, AAC
Commands
Press Ctrl+Shift+P (or Cmd+Shift+P on Mac) and type:
- Druminaa: Set Custom Error Sound - Choose your custom error sound file
- Druminaa: Reset to Default Sound - Reset to the default error sound
Settings
Configure in VS Code Settings (Ctrl+,):
raaa.customSoundPath - Custom path to error sound file. Leave empty to use default.
Quick Setup
Use Custom Sound
- Press
Ctrl+Shift+P
- Run: Druminaa: Set Custom Error Sound
- Select your audio file (MP3, WAV, OGG, M4A, FLAC, AAC)
- Done! Your custom sound will play on errors
Reset to Default
- Press
Ctrl+Shift+P
- Run: Druminaa: Reset to Default Sound
Requirements
Linux
ffplay (FFmpeg) - Install with: sudo apt install ffmpeg
macOS
Windows
- PowerShell (pre-installed)
How It Works
Druminaa monitors:
- Task Execution - Plays sound when tasks fail (non-zero exit code)
- Terminal Commands - Plays sound when shell commands fail
- Terminal Exit - Plays sound when terminal exits with error code
When a failure is detected, it plays your configured sound and shows a notification.
Examples
Detected Failures:
- Task build fails
- Terminal command returns non-zero exit code
- Shell execution errors
- Terminal closes with error status
Troubleshooting
Sound not playing?
- Check that audio file exists at the configured path
- Ensure audio player is installed (Linux:
ffplay, macOS: afplay, Windows: PowerShell)
- Try resetting to default sound
Commands not showing?
- Reload VS Code:
Ctrl+Shift+P → "Developer: Reload Window"
Development
Build from source:
npm install
npm run compile
Package extension:
npm run package
npx @vscode/vsce package
License
MIT
Enjoy!
Made with ❤️ for developers who want audio feedback on errors.
| |