A plugin for OpenCode that integrates desktop notifications and sound alerts into your workflow.
notificator-sounds/)Clone or download this repository
Install dependencies:
npm install
Build the plugin:
npm run build
Deploy to OpenCode plugins directory:
npm run deploy
This automatically:
Alternatively, use specific commands:
npm run deploy:build # Build only
npm run deploy:install # Install only (requires dist/ to exist)
Once installed, the plugin will automatically send desktop notifications for:
osascript for notificationsnotify-send (part of libnotify)sudo apt-get install libnotify-binsudo dnf install libnotifyThe plugin works out of the box with sensible defaults:
Config file location: ~/.config/opencode/plugin/notificator.jsonc
{
"enabled": true,
"showDesktopNotification": {
"enabled": true
},
"playSound": {
"enabled": true,
"volume": 100, // Playback volume from 0 (silent) to 100 (full)
"fileSeed": 0 // Auto-assigns a sound per project
}
}
By default, the plugin uses fileSeed to automatically assign a consistent sound to each project. It hashes projectPath + seed to pick from available sounds in the notificator-sounds/ directory. Change the seed value if you want a different sound assignment.
Set playSound.volume to a percentage from 0 to 100. Values outside that range are clamped; the default is 100.
To use the same sound for all projects:
{
"enabled": true,
"showDesktopNotification": {
"enabled": true
},
"playSound": {
"enabled": true,
"file": "ding1.mp3"
}
}
Available sounds: ding1.mp3 through ding6.mp3
Add your own audio files to the notificator-sounds/ directory at ~/.config/opencode/plugin/notificator-sounds/. Supported formats: .mp3, .wav, .ogg, .m4a, .aac, .flac. They'll automatically be included in the rotation when using fileSeed.
{
"enabled": true,
"showDesktopNotification": {
"enabled": true
},
"playSound": {
"enabled": false
}
}
{
"enabled": true,
"showDesktopNotification": {
"enabled": false
},
"playSound": {
"enabled": true
}
}
{
"enabled": false
}
afplay for audio playbackffplay (part of ffmpeg)sudo apt-get install ffmpegsudo dnf install ffmpegMIT
1 commits
JavaScript
100.0%
A plugin for OpenCode that integrates desktop notifications and sound alerts into your workflow.
notificator-sounds/)Clone or download this repository
Install dependencies:
npm install
Build the plugin:
npm run build
Deploy to OpenCode plugins directory:
npm run deploy
This automatically:
Alternatively, use specific commands:
npm run deploy:build # Build only
npm run deploy:install # Install only (requires dist/ to exist)
Once installed, the plugin will automatically send desktop notifications for:
osascript for notificationsnotify-send (part of libnotify)sudo apt-get install libnotify-binsudo dnf install libnotifyThe plugin works out of the box with sensible defaults:
Config file location: ~/.config/opencode/plugin/notificator.jsonc
{
"enabled": true,
"showDesktopNotification": {
"enabled": true
},
"playSound": {
"enabled": true,
"volume": 100, // Playback volume from 0 (silent) to 100 (full)
"fileSeed": 0 // Auto-assigns a sound per project
}
}
By default, the plugin uses fileSeed to automatically assign a consistent sound to each project. It hashes projectPath + seed to pick from available sounds in the notificator-sounds/ directory. Change the seed value if you want a different sound assignment.
Set playSound.volume to a percentage from 0 to 100. Values outside that range are clamped; the default is 100.
To use the same sound for all projects:
{
"enabled": true,
"showDesktopNotification": {
"enabled": true
},
"playSound": {
"enabled": true,
"file": "ding1.mp3"
}
}
Available sounds: ding1.mp3 through ding6.mp3
Add your own audio files to the notificator-sounds/ directory at ~/.config/opencode/plugin/notificator-sounds/. Supported formats: .mp3, .wav, .ogg, .m4a, .aac, .flac. They'll automatically be included in the rotation when using fileSeed.
{
"enabled": true,
"showDesktopNotification": {
"enabled": true
},
"playSound": {
"enabled": false
}
}
{
"enabled": true,
"showDesktopNotification": {
"enabled": false
},
"playSound": {
"enabled": true
}
}
{
"enabled": false
}
afplay for audio playbackffplay (part of ffmpeg)sudo apt-get install ffmpegsudo dnf install ffmpegMIT
1 commits
JavaScript
100.0%