mirror of
https://github.com/pnx/dotfiles
synced 2026-08-18 09:38:12 +02:00
opencode: add OAC
This commit is contained in:
parent
a9fc1ca56e
commit
863c63a84b
216 changed files with 39215 additions and 37 deletions
17
opencode/plugin/notify.ts
Normal file
17
opencode/plugin/notify.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import type { Plugin } from "@opencode-ai/plugin"
|
||||
|
||||
// CONFIGURATION: Set to true to enable this plugin
|
||||
const ENABLED = true
|
||||
|
||||
export const Notify: Plugin = async ({ $ }) => {
|
||||
// Plugin disabled - set ENABLED = true to activate
|
||||
if (!ENABLED) return {}
|
||||
|
||||
return {
|
||||
async event(input) {
|
||||
if (input.event.type === "session.idle") {
|
||||
await $`notify-send t 10000 "Opencode" "Your code is done!"`
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue